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/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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void StartRequestInternal(); | 88 void StartRequestInternal(); |
89 void CancelRequestInternal(int error, bool from_renderer); | 89 void CancelRequestInternal(int error, bool from_renderer); |
90 // Stores the SignedCertificateTimestamps held in |sct_list| in the | 90 // Stores the SignedCertificateTimestamps held in |sct_list| in the |
91 // SignedCertificateTimestampStore singleton, associated with |process_id|. | 91 // SignedCertificateTimestampStore singleton, associated with |process_id|. |
92 // On return, |sct_ids| contains the assigned ID and verification status of | 92 // On return, |sct_ids| contains the assigned ID and verification status of |
93 // each SignedCertificateTimestamp. | 93 // each SignedCertificateTimestamp. |
94 void StoreSignedCertificateTimestamps( | 94 void StoreSignedCertificateTimestamps( |
95 const net::SignedCertificateTimestampAndStatusList& sct_list, | 95 const net::SignedCertificateTimestampAndStatusList& sct_list, |
96 int process_id, | 96 int process_id, |
97 SignedCertificateTimestampIDStatusList* sct_ids); | 97 SignedCertificateTimestampIDStatusList* sct_ids); |
98 void CompleteResponseStarted(); | 98 void CompleteResponseStarted(bool is_redirect_response); |
99 void StartReading(bool is_continuation); | 99 void StartReading(bool is_continuation); |
100 void ResumeReading(); | 100 void ResumeReading(); |
101 void ReadMore(int* bytes_read); | 101 void ReadMore(int* bytes_read); |
102 // Passes a read result to the handler. | 102 // Passes a read result to the handler. |
103 void CompleteRead(int bytes_read); | 103 void CompleteRead(int bytes_read); |
104 void ResponseCompleted(); | 104 void ResponseCompleted(); |
105 void CallDidFinishLoading(); | 105 void CallDidFinishLoading(); |
106 void RecordHistograms(); | 106 void RecordHistograms(); |
107 | 107 |
108 bool is_deferred() const { return deferred_stage_ != DEFERRED_NONE; } | 108 bool is_deferred() const { return deferred_stage_ != DEFERRED_NONE; } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 base::RepeatingTimer<ResourceLoader> progress_timer_; | 155 base::RepeatingTimer<ResourceLoader> progress_timer_; |
156 | 156 |
157 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 157 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 159 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
160 }; | 160 }; |
161 | 161 |
162 } // namespace content | 162 } // namespace content |
163 | 163 |
164 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 164 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |