| 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 NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // headers. | 129 // headers. |
| 130 void ReceivedContentWasMalformed(); | 130 void ReceivedContentWasMalformed(); |
| 131 bool GetResponseAsString(std::string* out_response_string) const; | 131 bool GetResponseAsString(std::string* out_response_string) const; |
| 132 bool GetResponseAsFilePath(bool take_ownership, | 132 bool GetResponseAsFilePath(bool take_ownership, |
| 133 base::FilePath* out_response_path); | 133 base::FilePath* out_response_path); |
| 134 | 134 |
| 135 // Overridden from URLRequest::Delegate: | 135 // Overridden from URLRequest::Delegate: |
| 136 void OnReceivedRedirect(URLRequest* request, | 136 void OnReceivedRedirect(URLRequest* request, |
| 137 const RedirectInfo& redirect_info, | 137 const RedirectInfo& redirect_info, |
| 138 bool* defer_redirect) override; | 138 bool* defer_redirect) override; |
| 139 void OnResponseStarted(URLRequest* request) override; | 139 void OnResponseStarted(URLRequest* request, int net_error) override; |
| 140 void OnReadCompleted(URLRequest* request, int bytes_read) override; | 140 void OnReadCompleted(URLRequest* request, int bytes_read) override; |
| 141 void OnCertificateRequested(URLRequest* request, | 141 void OnCertificateRequested(URLRequest* request, |
| 142 SSLCertRequestInfo* cert_request_info) override; | 142 SSLCertRequestInfo* cert_request_info) override; |
| 143 | 143 |
| 144 // Overridden from URLRequestContextGetterObserver: | 144 // Overridden from URLRequestContextGetterObserver: |
| 145 void OnContextShuttingDown() override; | 145 void OnContextShuttingDown() override; |
| 146 | 146 |
| 147 URLFetcherDelegate* delegate() const { return delegate_; } | 147 URLFetcherDelegate* delegate() const { return delegate_; } |
| 148 static void CancelAll(); | 148 static void CancelAll(); |
| 149 static int GetNumFetcherCores(); | 149 static int GetNumFetcherCores(); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 int64_t total_response_bytes_; | 345 int64_t total_response_bytes_; |
| 346 | 346 |
| 347 static base::LazyInstance<Registry> g_registry; | 347 static base::LazyInstance<Registry> g_registry; |
| 348 | 348 |
| 349 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); | 349 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); |
| 350 }; | 350 }; |
| 351 | 351 |
| 352 } // namespace net | 352 } // namespace net |
| 353 | 353 |
| 354 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 354 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| OLD | NEW |