blob: afec4ad5a7d7b2780b17539577265a8ca2b6ac1a [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/callback_forward.h"
namespace content {
class WebContents;
namespace net {
class HttpNetworkSession;
class SSLCertRequestInfo;
class X509Certificate;
namespace chrome {
typedef base::Callback<void(net::X509Certificate*)> SelectCertificateCallback;
// Opens a constrained SSL client certificate selection dialog under |parent|,
// offering certificates from |cert_request_info|. When the user has made a
// selection, the dialog will report back to |callback|. |callback| is notified
// when the dialog closes in call cases; if the user cancels the dialog, we call
// with a NULL certificate.
void ShowSSLClientCertificateSelector(
content::WebContents* contents,
const net::HttpNetworkSession* network_session,
net::SSLCertRequestInfo* cert_request_info,
const SelectCertificateCallback& callback);
} // namespace chrome