| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void SetAutomaticallyRetryOn5xx(bool retry); | 93 void SetAutomaticallyRetryOn5xx(bool retry); |
| 94 void SetMaxRetriesOn5xx(int max_retries); | 94 void SetMaxRetriesOn5xx(int max_retries); |
| 95 int GetMaxRetriesOn5xx() const; | 95 int GetMaxRetriesOn5xx() const; |
| 96 base::TimeDelta GetBackoffDelay() const; | 96 base::TimeDelta GetBackoffDelay() const; |
| 97 void SetAutomaticallyRetryOnNetworkChanges(int max_retries); | 97 void SetAutomaticallyRetryOnNetworkChanges(int max_retries); |
| 98 void SaveResponseToFileAtPath( | 98 void SaveResponseToFileAtPath( |
| 99 const base::FilePath& file_path, | 99 const base::FilePath& file_path, |
| 100 scoped_refptr<base::TaskRunner> file_task_runner); | 100 scoped_refptr<base::TaskRunner> file_task_runner); |
| 101 void SaveResponseToTemporaryFile( | 101 void SaveResponseToTemporaryFile( |
| 102 scoped_refptr<base::TaskRunner> file_task_runner); | 102 scoped_refptr<base::TaskRunner> file_task_runner); |
| 103 void SaveResponseWithWriter( |
| 104 scoped_ptr<URLFetcherResponseWriter> response_writer); |
| 103 HttpResponseHeaders* GetResponseHeaders() const; | 105 HttpResponseHeaders* GetResponseHeaders() const; |
| 104 HostPortPair GetSocketAddress() const; | 106 HostPortPair GetSocketAddress() const; |
| 105 bool WasFetchedViaProxy() const; | 107 bool WasFetchedViaProxy() const; |
| 106 const GURL& GetOriginalURL() const; | 108 const GURL& GetOriginalURL() const; |
| 107 const GURL& GetURL() const; | 109 const GURL& GetURL() const; |
| 108 const URLRequestStatus& GetStatus() const; | 110 const URLRequestStatus& GetStatus() const; |
| 109 int GetResponseCode() const; | 111 int GetResponseCode() const; |
| 110 const ResponseCookies& GetCookies() const; | 112 const ResponseCookies& GetCookies() const; |
| 111 // Reports that the received content was malformed (i.e. failed parsing | 113 // Reports that the received content was malformed (i.e. failed parsing |
| 112 // or validation). This makes the throttling logic that does exponential | 114 // or validation). This makes the throttling logic that does exponential |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 base::debug::StackTrace stack_trace_; | 318 base::debug::StackTrace stack_trace_; |
| 317 | 319 |
| 318 static base::LazyInstance<Registry> g_registry; | 320 static base::LazyInstance<Registry> g_registry; |
| 319 | 321 |
| 320 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); | 322 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); |
| 321 }; | 323 }; |
| 322 | 324 |
| 323 } // namespace net | 325 } // namespace net |
| 324 | 326 |
| 325 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ | 327 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ |
| OLD | NEW |