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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 const void* key, | 117 const void* key, |
118 const CreateDataCallback& create_data_callback) OVERRIDE; | 118 const CreateDataCallback& create_data_callback) OVERRIDE; |
119 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; | 119 virtual void SetStopOnRedirect(bool stop_on_redirect) OVERRIDE; |
120 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 120 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
121 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE; | 121 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE; |
122 virtual int GetMaxRetriesOn5xx() const OVERRIDE; | 122 virtual int GetMaxRetriesOn5xx() const OVERRIDE; |
123 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 123 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
124 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE; | 124 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE; |
125 virtual void SaveResponseToFileAtPath( | 125 virtual void SaveResponseToFileAtPath( |
126 const base::FilePath& file_path, | 126 const base::FilePath& file_path, |
127 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 127 scoped_refptr<base::SequencedTaskRunner> file_task_runner) OVERRIDE; |
128 virtual void SaveResponseToTemporaryFile( | 128 virtual void SaveResponseToTemporaryFile( |
129 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 129 scoped_refptr<base::SequencedTaskRunner> file_task_runner) OVERRIDE; |
130 virtual void SaveResponseWithWriter( | 130 virtual void SaveResponseWithWriter( |
131 scoped_ptr<URLFetcherResponseWriter> response_writer) OVERRIDE; | 131 scoped_ptr<URLFetcherResponseWriter> response_writer) OVERRIDE; |
132 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 132 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
133 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 133 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
134 virtual bool WasFetchedViaProxy() const OVERRIDE; | 134 virtual bool WasFetchedViaProxy() const OVERRIDE; |
135 virtual void Start() OVERRIDE; | 135 virtual void Start() OVERRIDE; |
136 | 136 |
137 // URL we were created with. Because of how we're using URLFetcher GetURL() | 137 // URL we were created with. Because of how we're using URLFetcher GetURL() |
138 // always returns an empty URL. Chances are you'll want to use | 138 // always returns an empty URL. Chances are you'll want to use |
139 // GetOriginalURL() in your tests. | 139 // GetOriginalURL() in your tests. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 int id, | 453 int id, |
454 const GURL& url, | 454 const GURL& url, |
455 URLFetcher::RequestType request_type, | 455 URLFetcher::RequestType request_type, |
456 URLFetcherDelegate* d) OVERRIDE; | 456 URLFetcherDelegate* d) OVERRIDE; |
457 | 457 |
458 }; | 458 }; |
459 | 459 |
460 } // namespace net | 460 } // namespace net |
461 | 461 |
462 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 462 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
OLD | NEW |