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

Side by Side Diff: content/browser/loader/resource_loader.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 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
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_LOADER_RESOURCE_LOADER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const net::SSLInfo& info, 74 const net::SSLInfo& info,
75 bool fatal) override; 75 bool fatal) override;
76 void OnResponseStarted(net::URLRequest* request) override; 76 void OnResponseStarted(net::URLRequest* request) override;
77 void OnReadCompleted(net::URLRequest* request, int bytes_read) override; 77 void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
78 78
79 // SSLErrorHandler::Delegate implementation: 79 // SSLErrorHandler::Delegate implementation:
80 void CancelSSLRequest(int error, const net::SSLInfo* ssl_info) override; 80 void CancelSSLRequest(int error, const net::SSLInfo* ssl_info) override;
81 void ContinueSSLRequest() override; 81 void ContinueSSLRequest() override;
82 82
83 // SSLClientAuthHandler::Delegate implementation. 83 // SSLClientAuthHandler::Delegate implementation.
84 void ContinueWithCertificate(net::X509Certificate* cert) override; 84 void ContinueWithCertificate(
85 scoped_refptr<net::X509Certificate> cert,
86 scoped_refptr<net::SSLPrivateKey> private_key) override;
85 void CancelCertificateSelection() override; 87 void CancelCertificateSelection() override;
86 88
87 // These correspond to Controller's methods. 89 // These correspond to Controller's methods.
88 // TODO(mmenke): Seems like this could be simplified a little. 90 // TODO(mmenke): Seems like this could be simplified a little.
89 91
90 // |called_from_resource_controller| is true if called directly from a 92 // |called_from_resource_controller| is true if called directly from a
91 // ResourceController, in which case |resource_handler_| must not be invoked 93 // ResourceController, in which case |resource_handler_| must not be invoked
92 // or destroyed synchronously to avoid re-entrancy issues, and false 94 // or destroyed synchronously to avoid re-entrancy issues, and false
93 // otherwise. 95 // otherwise.
94 void Resume(bool called_from_resource_controller); 96 void Resume(bool called_from_resource_controller);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 base::ThreadChecker thread_checker_; 182 base::ThreadChecker thread_checker_;
181 183
182 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; 184 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_;
183 185
184 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); 186 DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
185 }; 187 };
186 188
187 } // namespace content 189 } // namespace content
188 190
189 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 191 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_network_delegate_simple.cc ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698