| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void SetURLRequestUserData( | 103 virtual void SetURLRequestUserData( |
| 104 const void* key, | 104 const void* key, |
| 105 const CreateDataCallback& create_data_callback) OVERRIDE; | 105 const CreateDataCallback& create_data_callback) OVERRIDE; |
| 106 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; | 106 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; |
| 107 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 107 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
| 108 virtual void SetMaxRetries(int max_retries) OVERRIDE; | 108 virtual void SetMaxRetries(int max_retries) OVERRIDE; |
| 109 virtual int GetMaxRetries() const OVERRIDE; | 109 virtual int GetMaxRetries() const OVERRIDE; |
| 110 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 110 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
| 111 virtual void SaveResponseToFileAtPath( | 111 virtual void SaveResponseToFileAtPath( |
| 112 const FilePath& file_path, | 112 const FilePath& file_path, |
| 113 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 113 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
| 114 virtual void SaveResponseToTemporaryFile( | 114 virtual void SaveResponseToTemporaryFile( |
| 115 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 115 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
| 116 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 116 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
| 117 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 117 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
| 118 virtual bool WasFetchedViaProxy() const OVERRIDE; | 118 virtual bool WasFetchedViaProxy() const OVERRIDE; |
| 119 virtual void Start() OVERRIDE; | 119 virtual void Start() OVERRIDE; |
| 120 | 120 |
| 121 // URL we were created with. Because of how we're using URLFetcher GetURL() | 121 // URL we were created with. Because of how we're using URLFetcher GetURL() |
| 122 // always returns an empty URL. Chances are you'll want to use | 122 // always returns an empty URL. Chances are you'll want to use |
| 123 // GetOriginalURL() in your tests. | 123 // GetOriginalURL() in your tests. |
| 124 virtual const GURL& GetOriginalURL() const OVERRIDE; | 124 virtual const GURL& GetOriginalURL() const OVERRIDE; |
| 125 virtual const GURL& GetURL() const OVERRIDE; | 125 virtual const GURL& GetURL() const OVERRIDE; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 int id, | 314 int id, |
| 315 const GURL& url, | 315 const GURL& url, |
| 316 URLFetcher::RequestType request_type, | 316 URLFetcher::RequestType request_type, |
| 317 URLFetcherDelegate* d) OVERRIDE; | 317 URLFetcherDelegate* d) OVERRIDE; |
| 318 | 318 |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 } // namespace net | 321 } // namespace net |
| 322 | 322 |
| 323 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 323 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
| OLD | NEW |