OLD | NEW |
---|---|
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/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/browser/loader/resource_handler.h" | 11 #include "content/browser/loader/resource_handler.h" |
12 #include "content/browser/ssl/ssl_error_handler.h" | 12 #include "content/browser/ssl/ssl_error_handler.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/browser/resource_controller.h" | 14 #include "content/public/browser/resource_controller.h" |
15 #include "content/public/common/ssl_status.h" | |
wtc
2013/11/28 16:15:07
Nit: it seems that we just need to include "conten
| |
15 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 class ResourceDispatcherHostLoginDelegate; | 19 class ResourceDispatcherHostLoginDelegate; |
19 class ResourceLoaderDelegate; | 20 class ResourceLoaderDelegate; |
20 class ResourceRequestInfoImpl; | 21 class ResourceRequestInfoImpl; |
21 class SSLClientAuthHandler; | 22 class SSLClientAuthHandler; |
22 | 23 |
23 // This class is responsible for driving the URLRequest (i.e., calling Start, | 24 // This class is responsible for driving the URLRequest (i.e., calling Start, |
24 // Read, and servicing events). It has a ResourceHandler, which is typically a | 25 // Read, and servicing events). It has a ResourceHandler, which is typically a |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 virtual void ContinueSSLRequest(const GlobalRequestID& id) OVERRIDE; | 77 virtual void ContinueSSLRequest(const GlobalRequestID& id) OVERRIDE; |
77 | 78 |
78 // ResourceController implementation: | 79 // ResourceController implementation: |
79 virtual void Resume() OVERRIDE; | 80 virtual void Resume() OVERRIDE; |
80 virtual void Cancel() OVERRIDE; | 81 virtual void Cancel() OVERRIDE; |
81 virtual void CancelAndIgnore() OVERRIDE; | 82 virtual void CancelAndIgnore() OVERRIDE; |
82 virtual void CancelWithError(int error_code) OVERRIDE; | 83 virtual void CancelWithError(int error_code) OVERRIDE; |
83 | 84 |
84 void StartRequestInternal(); | 85 void StartRequestInternal(); |
85 void CancelRequestInternal(int error, bool from_renderer); | 86 void CancelRequestInternal(int error, bool from_renderer); |
87 // Stores the SignedCertificateTimestamps held in |sct_list| in the | |
88 // SignedCertificateTimestampStore singleton, associated with |process_id|. | |
89 // On return, |signed_certificate_timestamp_ids| contains the assigned ID and | |
wtc
2013/11/28 16:15:07
Nit: |signed_certificate_timestamp_ids| => |sct_id
alcutter
2013/11/28 16:42:18
Done.
| |
90 // verification status of each SignedCertificateTimestamp. | |
91 void StoreSignedCertificateTimestamps( | |
92 const net::SignedCertificateTimestampAndStatusList& sct_list, | |
93 int process_id, | |
94 SignedCertificateTimestampIDStatusList* sct_ids); | |
86 void CompleteResponseStarted(); | 95 void CompleteResponseStarted(); |
87 void StartReading(bool is_continuation); | 96 void StartReading(bool is_continuation); |
88 void ResumeReading(); | 97 void ResumeReading(); |
89 void ReadMore(int* bytes_read); | 98 void ReadMore(int* bytes_read); |
90 void CompleteRead(int bytes_read); | 99 void CompleteRead(int bytes_read); |
91 void ResponseCompleted(); | 100 void ResponseCompleted(); |
92 void CallDidFinishLoading(); | 101 void CallDidFinishLoading(); |
93 void RecordHistograms(); | 102 void RecordHistograms(); |
94 | 103 |
95 bool is_deferred() const { return deferred_stage_ != DEFERRED_NONE; } | 104 bool is_deferred() const { return deferred_stage_ != DEFERRED_NONE; } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 bool is_transferring_; | 141 bool is_transferring_; |
133 | 142 |
134 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 143 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
135 | 144 |
136 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 145 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
137 }; | 146 }; |
138 | 147 |
139 } // namespace content | 148 } // namespace content |
140 | 149 |
141 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 150 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |