Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Side by Side Diff: content/browser/ssl/ssl_client_auth_handler.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/site_instance.cc ('k') | content/browser/ssl/ssl_client_auth_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
6 #define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class SSLClientAuthObserver : public NotificationObserver { 77 class SSLClientAuthObserver : public NotificationObserver {
78 public: 78 public:
79 SSLClientAuthObserver(net::SSLCertRequestInfo* cert_request_info, 79 SSLClientAuthObserver(net::SSLCertRequestInfo* cert_request_info,
80 SSLClientAuthHandler* handler); 80 SSLClientAuthHandler* handler);
81 virtual ~SSLClientAuthObserver(); 81 virtual ~SSLClientAuthObserver();
82 82
83 // UI should implement this to close the dialog. 83 // UI should implement this to close the dialog.
84 virtual void OnCertSelectedByNotification() = 0; 84 virtual void OnCertSelectedByNotification() = 0;
85 85
86 // NotificationObserver implementation: 86 // NotificationObserver implementation:
87 virtual void Observe(NotificationType type, 87 virtual void Observe(int type,
88 const NotificationSource& source, 88 const NotificationSource& source,
89 const NotificationDetails& details); 89 const NotificationDetails& details);
90 90
91 // Begins observing notifications from other SSLClientAuthHandler instances. 91 // Begins observing notifications from other SSLClientAuthHandler instances.
92 // If another instance chooses a cert for a matching SSLCertRequestInfo, we 92 // If another instance chooses a cert for a matching SSLCertRequestInfo, we
93 // will also use the same cert and OnCertSelectedByNotification will be called 93 // will also use the same cert and OnCertSelectedByNotification will be called
94 // so that the cert selection UI can be closed. 94 // so that the cert selection UI can be closed.
95 void StartObserving(); 95 void StartObserving();
96 96
97 // Stops observing notifications. We will no longer act on client auth 97 // Stops observing notifications. We will no longer act on client auth
98 // notifications. 98 // notifications.
99 void StopObserving(); 99 void StopObserving();
100 100
101 private: 101 private:
102 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 102 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
103 103
104 scoped_refptr<SSLClientAuthHandler> handler_; 104 scoped_refptr<SSLClientAuthHandler> handler_;
105 105
106 NotificationRegistrar notification_registrar_; 106 NotificationRegistrar notification_registrar_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver); 108 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver);
109 }; 109 };
110 110
111 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 111 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/site_instance.cc ('k') | content/browser/ssl/ssl_client_auth_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698