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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 119 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
120 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE; | 120 virtual void SetMaxRetriesOn5xx(int max_retries) OVERRIDE; |
121 virtual int GetMaxRetriesOn5xx() const OVERRIDE; | 121 virtual int GetMaxRetriesOn5xx() const OVERRIDE; |
122 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 122 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
123 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE; | 123 virtual void SetAutomaticallyRetryOnNetworkChanges(int max_retries) OVERRIDE; |
124 virtual void SaveResponseToFileAtPath( | 124 virtual void SaveResponseToFileAtPath( |
125 const base::FilePath& file_path, | 125 const base::FilePath& file_path, |
126 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 126 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
127 virtual void SaveResponseToTemporaryFile( | 127 virtual void SaveResponseToTemporaryFile( |
128 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; | 128 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; |
| 129 virtual void SaveResponseWithWriter( |
| 130 scoped_ptr<URLFetcherResponseWriter> response_writer) OVERRIDE; |
129 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 131 virtual HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
130 virtual HostPortPair GetSocketAddress() const OVERRIDE; | 132 virtual HostPortPair GetSocketAddress() const OVERRIDE; |
131 virtual bool WasFetchedViaProxy() const OVERRIDE; | 133 virtual bool WasFetchedViaProxy() const OVERRIDE; |
132 virtual void Start() OVERRIDE; | 134 virtual void Start() OVERRIDE; |
133 | 135 |
134 // URL we were created with. Because of how we're using URLFetcher GetURL() | 136 // URL we were created with. Because of how we're using URLFetcher GetURL() |
135 // always returns an empty URL. Chances are you'll want to use | 137 // always returns an empty URL. Chances are you'll want to use |
136 // GetOriginalURL() in your tests. | 138 // GetOriginalURL() in your tests. |
137 virtual const GURL& GetOriginalURL() const OVERRIDE; | 139 virtual const GURL& GetOriginalURL() const OVERRIDE; |
138 virtual const GURL& GetURL() const OVERRIDE; | 140 virtual const GURL& GetURL() const OVERRIDE; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 int id, | 414 int id, |
413 const GURL& url, | 415 const GURL& url, |
414 URLFetcher::RequestType request_type, | 416 URLFetcher::RequestType request_type, |
415 URLFetcherDelegate* d) OVERRIDE; | 417 URLFetcherDelegate* d) OVERRIDE; |
416 | 418 |
417 }; | 419 }; |
418 | 420 |
419 } // namespace net | 421 } // namespace net |
420 | 422 |
421 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 423 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
OLD | NEW |