summaryrefslogtreecommitdiffstats
path: root/content/browser/ssl/ssl_client_auth_handler.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-13 21:19:40 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-13 21:19:40 +0000
commit7a593db3f93fc3ca3bb51d96ba32694b8568a0df (patch)
tree46f6f091ed336d593e84d1a018ff12d49e0ec3bd /content/browser/ssl/ssl_client_auth_handler.h
parenta2a220bbd154837c4f9e6eaf3e715cbe2ba9362c (diff)
downloadchromium_src-7a593db3f93fc3ca3bb51d96ba32694b8568a0df.zip
chromium_src-7a593db3f93fc3ca3bb51d96ba32694b8568a0df.tar.gz
chromium_src-7a593db3f93fc3ca3bb51d96ba32694b8568a0df.tar.bz2
Remove knowledge about SSLClientAuthHandler from chrome. Instead a callback is given to the embedder to be run when the certificate is available.
BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9384014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121733 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/ssl/ssl_client_auth_handler.h')
-rw-r--r--content/browser/ssl/ssl_client_auth_handler.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/content/browser/ssl/ssl_client_auth_handler.h b/content/browser/ssl/ssl_client_auth_handler.h
index a5893dc..0461d27 100644
--- a/content/browser/ssl/ssl_client_auth_handler.h
+++ b/content/browser/ssl/ssl_client_auth_handler.h
@@ -11,8 +11,6 @@
#include "base/message_loop_helpers.h"
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
#include "net/base/ssl_cert_request_info.h"
namespace net {
@@ -45,19 +43,6 @@ class CONTENT_EXPORT SSLClientAuthHandler
// be long after DoSelectCertificate returns, if the UI is modeless/async.)
void CertificateSelected(net::X509Certificate* cert);
- // Like CertificateSelected, but does not send SSL_CLIENT_AUTH_CERT_SELECTED
- // notification. Used to avoid notification re-spamming when other
- // certificate selectors act on a notification matching the same host.
- virtual void CertificateSelectedNoNotify(net::X509Certificate* cert);
-
- // Returns the SSLCertRequestInfo for this handler.
- net::SSLCertRequestInfo* cert_request_info() { return cert_request_info_; }
-
- // Returns the session the URL request is associated with.
- const net::HttpNetworkSession* http_network_session() const {
- return http_network_session_;
- }
-
protected:
virtual ~SSLClientAuthHandler();
@@ -87,39 +72,4 @@ class CONTENT_EXPORT SSLClientAuthHandler
DISALLOW_COPY_AND_ASSIGN(SSLClientAuthHandler);
};
-class CONTENT_EXPORT SSLClientAuthObserver
- : public content::NotificationObserver {
- public:
- SSLClientAuthObserver(net::SSLCertRequestInfo* cert_request_info,
- SSLClientAuthHandler* handler);
- virtual ~SSLClientAuthObserver();
-
- // UI should implement this to close the dialog.
- virtual void OnCertSelectedByNotification() = 0;
-
- // content::NotificationObserver implementation:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- // Begins observing notifications from other SSLClientAuthHandler instances.
- // If another instance chooses a cert for a matching SSLCertRequestInfo, we
- // will also use the same cert and OnCertSelectedByNotification will be called
- // so that the cert selection UI can be closed.
- void StartObserving();
-
- // Stops observing notifications. We will no longer act on client auth
- // notifications.
- void StopObserving();
-
- private:
- scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
-
- scoped_refptr<SSLClientAuthHandler> handler_;
-
- content::NotificationRegistrar notification_registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver);
-};
-
#endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_