Index: content/browser/ssl/ssl_client_auth_handler.h |
diff --git a/content/browser/ssl/ssl_client_auth_handler.h b/content/browser/ssl/ssl_client_auth_handler.h |
index b848d54d7ffff4d31544f114cba1d3f2b517c142..2398806de0b88e0c6b33651f8e32018a0a3d9553 100644 |
--- a/content/browser/ssl/ssl_client_auth_handler.h |
+++ b/content/browser/ssl/ssl_client_auth_handler.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ |
#include "base/basictypes.h" |
+#include "base/callback.h" |
#include "base/memory/ref_counted.h" |
#include "base/sequenced_task_runner_helpers.h" |
#include "content/common/content_export.h" |
@@ -31,9 +32,12 @@ class CONTENT_EXPORT SSLClientAuthHandler |
: public base::RefCountedThreadSafe< |
SSLClientAuthHandler, BrowserThread::DeleteOnIOThread> { |
public: |
+ typedef base::Callback<void(net::X509Certificate*)> CertificateCallback; |
+ |
SSLClientAuthHandler(scoped_ptr<net::ClientCertStore> client_cert_store, |
net::URLRequest* request, |
- net::SSLCertRequestInfo* cert_request_info); |
+ net::SSLCertRequestInfo* cert_request_info, |
+ const CertificateCallback& callback); |
// Selects a certificate and resumes the URL request with that certificate. |
// Should only be called on the IO thread. |
@@ -79,6 +83,9 @@ class CONTENT_EXPORT SSLClientAuthHandler |
scoped_ptr<net::ClientCertStore> client_cert_store_; |
+ // The callback to call when the certificate is selected. |
+ CertificateCallback callback_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SSLClientAuthHandler); |
}; |