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

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

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unused function in Android. Created 5 years, 2 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
11 #include "content/browser/loader/resource_handler.h" 11 #include "content/browser/loader/resource_handler.h"
12 #include "content/browser/ssl/ssl_client_auth_handler.h" 12 #include "content/browser/ssl/ssl_client_auth_handler.h"
13 #include "content/browser/ssl/ssl_error_handler.h" 13 #include "content/browser/ssl/ssl_error_handler.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/resource_controller.h" 15 #include "content/public/browser/resource_controller.h"
16 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" 16 #include "content/public/common/signed_certificate_timestamp_id_and_status.h"
17 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
18 18
19 namespace net { 19 namespace net {
20 class SSLPrivateKey;
20 class X509Certificate; 21 class X509Certificate;
21 } 22 }
22 23
23 namespace content { 24 namespace content {
24 class ResourceDispatcherHostLoginDelegate; 25 class ResourceDispatcherHostLoginDelegate;
25 class ResourceLoaderDelegate; 26 class ResourceLoaderDelegate;
26 class ResourceRequestInfoImpl; 27 class ResourceRequestInfoImpl;
27 28
28 // This class is responsible for driving the URLRequest (i.e., calling Start, 29 // This class is responsible for driving the URLRequest (i.e., calling Start,
29 // Read, and servicing events). It has a ResourceHandler, which is typically a 30 // Read, and servicing events). It has a ResourceHandler, which is typically a
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool fatal) override; 65 bool fatal) override;
65 void OnBeforeNetworkStart(net::URLRequest* request, bool* defer) override; 66 void OnBeforeNetworkStart(net::URLRequest* request, bool* defer) override;
66 void OnResponseStarted(net::URLRequest* request) override; 67 void OnResponseStarted(net::URLRequest* request) override;
67 void OnReadCompleted(net::URLRequest* request, int bytes_read) override; 68 void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
68 69
69 // SSLErrorHandler::Delegate implementation: 70 // SSLErrorHandler::Delegate implementation:
70 void CancelSSLRequest(int error, const net::SSLInfo* ssl_info) override; 71 void CancelSSLRequest(int error, const net::SSLInfo* ssl_info) override;
71 void ContinueSSLRequest() override; 72 void ContinueSSLRequest() override;
72 73
73 // SSLClientAuthHandler::Delegate implementation. 74 // SSLClientAuthHandler::Delegate implementation.
74 void ContinueWithCertificate(net::X509Certificate* cert) override; 75 void ContinueWithCertificate(net::X509Certificate* cert,
76 net::SSLPrivateKey* private_key) override;
75 void CancelCertificateSelection() override; 77 void CancelCertificateSelection() override;
76 78
77 // ResourceController implementation: 79 // ResourceController implementation:
78 void Resume() override; 80 void Resume() override;
79 void Cancel() override; 81 void Cancel() override;
80 void CancelAndIgnore() override; 82 void CancelAndIgnore() override;
81 void CancelWithError(int error_code) override; 83 void CancelWithError(int error_code) override;
82 84
83 void StartRequestInternal(); 85 void StartRequestInternal();
84 void CancelRequestInternal(int error, bool from_renderer); 86 void CancelRequestInternal(int error, bool from_renderer);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 int times_cancelled_after_request_start_; 147 int times_cancelled_after_request_start_;
146 148
147 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; 149 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_;
148 150
149 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); 151 DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
150 }; 152 };
151 153
152 } // namespace content 154 } // namespace content
153 155
154 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 156 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698