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

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

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 8 years, 11 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
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"
11 #include "base/message_loop_helpers.h"
11 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
12 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
15 #include "net/base/ssl_cert_request_info.h" 16 #include "net/base/ssl_cert_request_info.h"
16 17
17 namespace net { 18 namespace net {
18 class HttpNetworkSession; 19 class HttpNetworkSession;
19 class URLRequest; 20 class URLRequest;
20 class X509Certificate; 21 class X509Certificate;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return http_network_session_; 58 return http_network_session_;
58 } 59 }
59 60
60 protected: 61 protected:
61 virtual ~SSLClientAuthHandler(); 62 virtual ~SSLClientAuthHandler();
62 63
63 private: 64 private:
64 friend class base::RefCountedThreadSafe< 65 friend class base::RefCountedThreadSafe<
65 SSLClientAuthHandler, content::BrowserThread::DeleteOnIOThread>; 66 SSLClientAuthHandler, content::BrowserThread::DeleteOnIOThread>;
66 friend class content::BrowserThread; 67 friend class content::BrowserThread;
67 friend class DeleteTask<SSLClientAuthHandler>; 68 friend class base::DeleteHelper<SSLClientAuthHandler>;
68 69
69 // Notifies that the user has selected a cert. 70 // Notifies that the user has selected a cert.
70 // Called on the IO thread. 71 // Called on the IO thread.
71 void DoCertificateSelected(net::X509Certificate* cert); 72 void DoCertificateSelected(net::X509Certificate* cert);
72 73
73 // Selects a client certificate on the UI thread. 74 // Selects a client certificate on the UI thread.
74 void DoSelectCertificate(int render_process_host_id, 75 void DoSelectCertificate(int render_process_host_id,
75 int render_view_host_id); 76 int render_view_host_id);
76 77
77 // The net::URLRequest that triggered this client auth. 78 // The net::URLRequest that triggered this client auth.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_; 116 scoped_refptr<net::SSLCertRequestInfo> cert_request_info_;
116 117
117 scoped_refptr<SSLClientAuthHandler> handler_; 118 scoped_refptr<SSLClientAuthHandler> handler_;
118 119
119 content::NotificationRegistrar notification_registrar_; 120 content::NotificationRegistrar notification_registrar_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver); 122 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthObserver);
122 }; 123 };
123 124
124 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_ 125 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_handler.h ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698