| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "content/browser/loader/resource_handler.h" | 13 #include "content/browser/loader/resource_handler.h" |
| 14 #include "content/browser/ssl/ssl_client_auth_handler.h" | 14 #include "content/browser/ssl/ssl_client_auth_handler.h" |
| 15 #include "content/browser/ssl/ssl_error_handler.h" | 15 #include "content/browser/ssl/ssl_error_handler.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "content/public/browser/resource_controller.h" | 17 #include "content/public/browser/resource_controller.h" |
| 18 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" | |
| 19 #include "net/url_request/url_request.h" | 18 #include "net/url_request/url_request.h" |
| 20 | 19 |
| 21 namespace net { | 20 namespace net { |
| 22 class X509Certificate; | 21 class X509Certificate; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace content { | 24 namespace content { |
| 26 class CertStore; | 25 class CertStore; |
| 27 class ResourceDispatcherHostLoginDelegate; | 26 class ResourceDispatcherHostLoginDelegate; |
| 28 class ResourceLoaderDelegate; | 27 class ResourceLoaderDelegate; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void CancelCertificateSelection() override; | 87 void CancelCertificateSelection() override; |
| 89 | 88 |
| 90 // ResourceController implementation: | 89 // ResourceController implementation: |
| 91 void Resume() override; | 90 void Resume() override; |
| 92 void Cancel() override; | 91 void Cancel() override; |
| 93 void CancelAndIgnore() override; | 92 void CancelAndIgnore() override; |
| 94 void CancelWithError(int error_code) override; | 93 void CancelWithError(int error_code) override; |
| 95 | 94 |
| 96 void StartRequestInternal(); | 95 void StartRequestInternal(); |
| 97 void CancelRequestInternal(int error, bool from_renderer); | 96 void CancelRequestInternal(int error, bool from_renderer); |
| 98 // Stores the SignedCertificateTimestamps held in |sct_list| in the | |
| 99 // SignedCertificateTimestampStore singleton, associated with |process_id|. | |
| 100 // On return, |sct_ids| contains the assigned ID and verification status of | |
| 101 // each SignedCertificateTimestamp. | |
| 102 void StoreSignedCertificateTimestamps( | |
| 103 const net::SignedCertificateTimestampAndStatusList& sct_list, | |
| 104 int process_id, | |
| 105 SignedCertificateTimestampIDStatusList* sct_ids); | |
| 106 void CompleteResponseStarted(); | 97 void CompleteResponseStarted(); |
| 107 void StartReading(bool is_continuation); | 98 void StartReading(bool is_continuation); |
| 108 void ResumeReading(); | 99 void ResumeReading(); |
| 109 void ReadMore(int* bytes_read); | 100 void ReadMore(int* bytes_read); |
| 110 // Passes a read result to the handler. | 101 // Passes a read result to the handler. |
| 111 void CompleteRead(int bytes_read); | 102 void CompleteRead(int bytes_read); |
| 112 void ResponseCompleted(); | 103 void ResponseCompleted(); |
| 113 void CallDidFinishLoading(); | 104 void CallDidFinishLoading(); |
| 114 void RecordHistograms(); | 105 void RecordHistograms(); |
| 115 | 106 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 CertStore* cert_store_; | 159 CertStore* cert_store_; |
| 169 | 160 |
| 170 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 161 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
| 171 | 162 |
| 172 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 163 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 173 }; | 164 }; |
| 174 | 165 |
| 175 } // namespace content | 166 } // namespace content |
| 176 | 167 |
| 177 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 168 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
| OLD | NEW |