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

Side by Side Diff: chrome/browser/ssl/ssl_client_auth_observer.h

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ssl/ssl_client_auth_observer.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_
6 #define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_ 6 #define CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 25 matching lines...) Expand all
36 // If another instance chooses a cert for a matching SSLCertRequestInfo, we 36 // If another instance chooses a cert for a matching SSLCertRequestInfo, we
37 // will also use the same cert and OnCertSelectedByNotification will be called 37 // will also use the same cert and OnCertSelectedByNotification will be called
38 // so that the cert selection UI can be closed. 38 // so that the cert selection UI can be closed.
39 void StartObserving(); 39 void StartObserving();
40 40
41 // Stops observing notifications. We will no longer act on client auth 41 // Stops observing notifications. We will no longer act on client auth
42 // notifications. 42 // notifications.
43 void StopObserving(); 43 void StopObserving();
44 44
45 net::SSLCertRequestInfo* cert_request_info() const { 45 net::SSLCertRequestInfo* cert_request_info() const {
46 return cert_request_info_; 46 return cert_request_info_.get();
47 } 47 }
48 48
49 private: 49 private:
50 // content::NotificationObserver implementation: 50 // content::NotificationObserver implementation:
51 virtual void Observe(int type, 51 virtual void Observe(int type,
52 const content::NotificationSource& source, 52 const content::NotificationSource& source,
53 const content::NotificationDetails& details) OVERRIDE; 53 const content::NotificationDetails& details) OVERRIDE;
54 54
55 const net::HttpNetworkSession* network_session_; 55 const net::HttpNetworkSession* network_session_;
56 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 56 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
57 base::Callback<void(net::X509Certificate*)> callback_; 57 base::Callback<void(net::X509Certificate*)> callback_;
58 content::NotificationRegistrar notification_registrar_; 58 content::NotificationRegistrar notification_registrar_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver); 60 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver);
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_ 63 #endif // CHROME_BROWSER_SSL_SSL_CLIENT_AUTH_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ssl/ssl_client_auth_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698