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

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

Issue 12035105: Move client certificates retrieval logic out of the SSL sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing license header Created 7 years, 10 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 | « content/browser/loader/resource_loader_unittest.cc ('k') | content/content_tests.gypi » ('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 CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 // you call TakeNoAction(). This is necessary for ensuring the instance is 40 // you call TakeNoAction(). This is necessary for ensuring the instance is
41 // not leaked. 41 // not leaked.
42 // 42 //
43 class SSLErrorHandler : public base::RefCountedThreadSafe<SSLErrorHandler> { 43 class SSLErrorHandler : public base::RefCountedThreadSafe<SSLErrorHandler> {
44 public: 44 public:
45 // Delegate functions must be called from IO thread. All functions accept 45 // Delegate functions must be called from IO thread. All functions accept
46 // |id| as the first argument. |id| is a copy of the second argument of 46 // |id| as the first argument. |id| is a copy of the second argument of
47 // SSLManager::OnSSLCertificateError() and represents the request. 47 // SSLManager::OnSSLCertificateError() and represents the request.
48 // Finally, CancelSSLRequest() or ContinueSSLRequest() will be called after 48 // Finally, CancelSSLRequest() or ContinueSSLRequest() will be called after
49 // SSLErrorHandler makes a decision on the SSL error. 49 // SSLErrorHandler makes a decision on the SSL error.
50 class Delegate { 50 class CONTENT_EXPORT Delegate {
51 public: 51 public:
52 // Called when SSLErrorHandler decides to cancel the request because of 52 // Called when SSLErrorHandler decides to cancel the request because of
53 // the SSL error. 53 // the SSL error.
54 virtual void CancelSSLRequest(const GlobalRequestID& id, 54 virtual void CancelSSLRequest(const GlobalRequestID& id,
55 int error, 55 int error,
56 const net::SSLInfo* ssl_info) = 0; 56 const net::SSLInfo* ssl_info) = 0;
57 57
58 // Called when SSLErrorHandler decides to continue the request despite the 58 // Called when SSLErrorHandler decides to continue the request despite the
59 // SSL error. 59 // SSL error.
60 virtual void ContinueSSLRequest(const GlobalRequestID& id) = 0; 60 virtual void ContinueSSLRequest(const GlobalRequestID& id) = 0;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // A flag to make sure we notify the net::URLRequest exactly once. 163 // A flag to make sure we notify the net::URLRequest exactly once.
164 // Should only be accessed on the IO thread 164 // Should only be accessed on the IO thread
165 bool request_has_been_notified_; 165 bool request_has_been_notified_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); 167 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler);
168 }; 168 };
169 169
170 } // namespace content 170 } // namespace content
171 171
172 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_ 172 #endif // CONTENT_BROWSER_SSL_SSL_ERROR_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698