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

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

Issue 511163002: Net-related fixups for scoped_refptr conversion operator cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix naming to match Created 6 years, 3 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
« no previous file with comments | « no previous file | 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"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
12 12
13 namespace net { 13 namespace net {
14 class HttpNetworkSession; 14 class HttpNetworkSession;
15 class SSLCertRequestInfo; 15 class SSLCertRequestInfo;
16 class X509Certificate; 16 class X509Certificate;
17 } 17 }
18 18
19 class SSLClientAuthObserver : public content::NotificationObserver { 19 class SSLClientAuthObserver : public content::NotificationObserver {
20 public: 20 public:
21 SSLClientAuthObserver( 21 SSLClientAuthObserver(
22 const net::HttpNetworkSession* network_session, 22 const net::HttpNetworkSession* network_session,
23 net::SSLCertRequestInfo* cert_request_info, 23 const scoped_refptr<net::SSLCertRequestInfo>& cert_request_info,
24 const base::Callback<void(net::X509Certificate*)>& callback); 24 const base::Callback<void(net::X509Certificate*)>& callback);
25 virtual ~SSLClientAuthObserver(); 25 virtual ~SSLClientAuthObserver();
26 26
27 // UI should implement this to close the dialog. 27 // UI should implement this to close the dialog.
28 virtual void OnCertSelectedByNotification() = 0; 28 virtual void OnCertSelectedByNotification() = 0;
29 29
30 // Send content the certificate. Can also call with NULL if the user 30 // Send content the certificate. Can also call with NULL if the user
31 // cancelled. Derived classes must use this instead of caching the callback 31 // cancelled. Derived classes must use this instead of caching the callback
32 // and calling it directly. 32 // and calling it directly.
33 void CertificateSelected(net::X509Certificate* cert); 33 void CertificateSelected(net::X509Certificate* cert);
(...skipping 20 matching lines...) Expand all
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 | « no previous file | chrome/browser/ssl/ssl_client_auth_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698