| Index: chrome/browser/ssl_client_certificate_selector.h
|
| ===================================================================
|
| --- chrome/browser/ssl_client_certificate_selector.h (revision 121323)
|
| +++ chrome/browser/ssl_client_certificate_selector.h (working copy)
|
| @@ -6,24 +6,28 @@
|
| #define CHROME_BROWSER_SSL_CLIENT_CERTIFICATE_SELECTOR_H_
|
| #pragma once
|
|
|
| -class SSLClientAuthHandler;
|
| +#include "base/callback_forward.h"
|
| +
|
| class TabContentsWrapper;
|
|
|
| namespace net {
|
| +class HttpNetworkSession;
|
| class SSLCertRequestInfo;
|
| +class X509Certificate;
|
| }
|
|
|
| namespace browser {
|
|
|
| // 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 |delegate|. |delegate| is notified
|
| +// 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(
|
| TabContentsWrapper* wrapper,
|
| + const net::HttpNetworkSession* network_session,
|
| net::SSLCertRequestInfo* cert_request_info,
|
| - SSLClientAuthHandler* delegate);
|
| + const base::Callback<void(net::X509Certificate*)>& callback);
|
|
|
| // Same as above, but doesn't check the UseMoreWebUI flag. It just calls the
|
| // native implementation. This lets us have both the WebUI implementation and
|
| @@ -31,8 +35,9 @@
|
| // a run-time flag.
|
| void ShowNativeSSLClientCertificateSelector(
|
| TabContentsWrapper* wrapper,
|
| + const net::HttpNetworkSession* network_session,
|
| net::SSLCertRequestInfo* cert_request_info,
|
| - SSLClientAuthHandler* delegate);
|
| + const base::Callback<void(net::X509Certificate*)>& callback);
|
|
|
| } // namespace browser
|
|
|
|
|