| 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_TEST_URL_FETCHER_FACTORY_H_ | 5 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
| 6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 HttpRequestHeaders* headers) const OVERRIDE; | 99 HttpRequestHeaders* headers) const OVERRIDE; |
| 100 virtual void SetRequestContext( | 100 virtual void SetRequestContext( |
| 101 URLRequestContextGetter* request_context_getter) OVERRIDE; | 101 URLRequestContextGetter* request_context_getter) OVERRIDE; |
| 102 virtual void SetFirstPartyForCookies( | 102 virtual void SetFirstPartyForCookies( |
| 103 const GURL& first_party_for_cookies) OVERRIDE; | 103 const GURL& first_party_for_cookies) OVERRIDE; |
| 104 virtual void SetURLRequestUserData( | 104 virtual void SetURLRequestUserData( |
| 105 const void* key, | 105 const void* key, |
| 106 const CreateDataCallback& create_data_callback) OVERRIDE; | 106 const CreateDataCallback& create_data_callback) OVERRIDE; |
| 107 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; | 107 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; |
| 108 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 108 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
| 109 virtual void SetMaxRetries(int max_retries) OVERRIDE; | 109 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE; |
| 110 virtual int GetMaxRetries() const OVERRIDE; | 110 virtual int GetMaxRetriesOn5xx() const OVERRIDE; |
| 111 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 111 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
| 112 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE; |
| 112 virtual void SaveResponseToFileAtPath( | 113 virtual void SaveResponseToFileAtPath( |
| 113 const FilePath& file_path, | 114 const FilePath& file_path, |
| 114 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 115 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
| 115 virtual void SaveResponseToTemporaryFile( | 116 virtual void SaveResponseToTemporaryFile( |
| 116 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 117 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
| 117 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 118 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
| 118 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 119 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
| 119 virtual bool WasFetchedViaProxy() const OVERRIDE; | 120 virtual bool WasFetchedViaProxy() const OVERRIDE; |
| 120 virtual void Start() OVERRIDE; | 121 virtual void Start() OVERRIDE; |
| 121 | 122 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 int id, | 330 int id, |
| 330 const GURL& url, | 331 const GURL& url, |
| 331 URLFetcher::RequestType request_type, | 332 URLFetcher::RequestType request_type, |
| 332 URLFetcherDelegate* d) OVERRIDE; | 333 URLFetcherDelegate* d) OVERRIDE; |
| 333 | 334 |
| 334 }; | 335 }; |
| 335 | 336 |
| 336 } // namespace net | 337 } // namespace net |
| 337 | 338 |
| 338 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 339 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
| OLD | NEW |