| 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" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // IPC message handlers: | 51 // IPC message handlers: |
| 52 void OnUploadProgressACK(); | 52 void OnUploadProgressACK(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 FRIEND_TEST_ALL_PREFIXES(ResourceLoaderTest, ClientCertStoreLookup); | 55 FRIEND_TEST_ALL_PREFIXES(ResourceLoaderTest, ClientCertStoreLookup); |
| 56 FRIEND_TEST_ALL_PREFIXES(ResourceLoaderTest, ClientCertStoreNull); | 56 FRIEND_TEST_ALL_PREFIXES(ResourceLoaderTest, ClientCertStoreNull); |
| 57 | 57 |
| 58 // net::URLRequest::Delegate implementation: | 58 // net::URLRequest::Delegate implementation: |
| 59 virtual void OnReceivedRedirect(net::URLRequest* request, | 59 virtual void OnReceivedRedirect(net::URLRequest* request, |
| 60 const net::RedirectInfo& redirect_info, | 60 const net::RedirectInfo& redirect_info, |
| 61 bool* defer) OVERRIDE; | 61 bool* defer) override; |
| 62 virtual void OnAuthRequired(net::URLRequest* request, | 62 virtual void OnAuthRequired(net::URLRequest* request, |
| 63 net::AuthChallengeInfo* info) OVERRIDE; | 63 net::AuthChallengeInfo* info) override; |
| 64 virtual void OnCertificateRequested(net::URLRequest* request, | 64 virtual void OnCertificateRequested(net::URLRequest* request, |
| 65 net::SSLCertRequestInfo* info) OVERRIDE; | 65 net::SSLCertRequestInfo* info) override; |
| 66 virtual void OnSSLCertificateError(net::URLRequest* request, | 66 virtual void OnSSLCertificateError(net::URLRequest* request, |
| 67 const net::SSLInfo& info, | 67 const net::SSLInfo& info, |
| 68 bool fatal) OVERRIDE; | 68 bool fatal) override; |
| 69 virtual void OnBeforeNetworkStart(net::URLRequest* request, | 69 virtual void OnBeforeNetworkStart(net::URLRequest* request, |
| 70 bool* defer) OVERRIDE; | 70 bool* defer) override; |
| 71 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; | 71 virtual void OnResponseStarted(net::URLRequest* request) override; |
| 72 virtual void OnReadCompleted(net::URLRequest* request, | 72 virtual void OnReadCompleted(net::URLRequest* request, |
| 73 int bytes_read) OVERRIDE; | 73 int bytes_read) override; |
| 74 | 74 |
| 75 // SSLErrorHandler::Delegate implementation: | 75 // SSLErrorHandler::Delegate implementation: |
| 76 virtual void CancelSSLRequest(int error, | 76 virtual void CancelSSLRequest(int error, |
| 77 const net::SSLInfo* ssl_info) OVERRIDE; | 77 const net::SSLInfo* ssl_info) override; |
| 78 virtual void ContinueSSLRequest() OVERRIDE; | 78 virtual void ContinueSSLRequest() override; |
| 79 | 79 |
| 80 // ResourceController implementation: | 80 // ResourceController implementation: |
| 81 virtual void Resume() OVERRIDE; | 81 virtual void Resume() override; |
| 82 virtual void Cancel() OVERRIDE; | 82 virtual void Cancel() override; |
| 83 virtual void CancelAndIgnore() OVERRIDE; | 83 virtual void CancelAndIgnore() override; |
| 84 virtual void CancelWithError(int error_code) OVERRIDE; | 84 virtual void CancelWithError(int error_code) override; |
| 85 | 85 |
| 86 void StartRequestInternal(); | 86 void StartRequestInternal(); |
| 87 void CancelRequestInternal(int error, bool from_renderer); | 87 void CancelRequestInternal(int error, bool from_renderer); |
| 88 // Stores the SignedCertificateTimestamps held in |sct_list| in the | 88 // Stores the SignedCertificateTimestamps held in |sct_list| in the |
| 89 // SignedCertificateTimestampStore singleton, associated with |process_id|. | 89 // SignedCertificateTimestampStore singleton, associated with |process_id|. |
| 90 // On return, |sct_ids| contains the assigned ID and verification status of | 90 // On return, |sct_ids| contains the assigned ID and verification status of |
| 91 // each SignedCertificateTimestamp. | 91 // each SignedCertificateTimestamp. |
| 92 void StoreSignedCertificateTimestamps( | 92 void StoreSignedCertificateTimestamps( |
| 93 const net::SignedCertificateTimestampAndStatusList& sct_list, | 93 const net::SignedCertificateTimestampAndStatusList& sct_list, |
| 94 int process_id, | 94 int process_id, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 bool is_transferring_; | 145 bool is_transferring_; |
| 146 | 146 |
| 147 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 147 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 149 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace content | 152 } // namespace content |
| 153 | 153 |
| 154 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 154 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
| OLD | NEW |