| 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 CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ | 5 #ifndef CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ |
| 6 #define CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ | 6 #define CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const std::string& extra_request_headers) OVERRIDE; | 77 const std::string& extra_request_headers) OVERRIDE; |
| 78 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; | 78 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; |
| 79 virtual void GetExtraRequestHeaders( | 79 virtual void GetExtraRequestHeaders( |
| 80 net::HttpRequestHeaders* headers) OVERRIDE; | 80 net::HttpRequestHeaders* headers) OVERRIDE; |
| 81 virtual void SetRequestContext( | 81 virtual void SetRequestContext( |
| 82 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 82 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
| 83 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 83 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
| 84 virtual void SetMaxRetries(int max_retries) OVERRIDE; | 84 virtual void SetMaxRetries(int max_retries) OVERRIDE; |
| 85 virtual int GetMaxRetries() const OVERRIDE; | 85 virtual int GetMaxRetries() const OVERRIDE; |
| 86 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 86 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
| 87 virtual void SaveResponseToFileAtPath( |
| 88 const FilePath& file_path, |
| 89 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; |
| 87 virtual void SaveResponseToTemporaryFile( | 90 virtual void SaveResponseToTemporaryFile( |
| 88 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 91 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; |
| 89 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 92 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
| 90 virtual net::HostPortPair GetSocketAddress() const OVERRIDE; | 93 virtual net::HostPortPair GetSocketAddress() const OVERRIDE; |
| 91 virtual bool WasFetchedViaProxy() const OVERRIDE; | 94 virtual bool WasFetchedViaProxy() const OVERRIDE; |
| 92 virtual void Start() OVERRIDE; | 95 virtual void Start() OVERRIDE; |
| 93 virtual void StartWithRequestContextGetter( | 96 virtual void StartWithRequestContextGetter( |
| 94 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 97 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
| 95 | 98 |
| 96 // URL we were created with. Because of how we're using URLFetcher GetURL() | 99 // URL we were created with. Because of how we're using URLFetcher GetURL() |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // This method will create a real URLFetcher. | 281 // This method will create a real URLFetcher. |
| 279 virtual content::URLFetcher* CreateURLFetcher( | 282 virtual content::URLFetcher* CreateURLFetcher( |
| 280 int id, | 283 int id, |
| 281 const GURL& url, | 284 const GURL& url, |
| 282 content::URLFetcher::RequestType request_type, | 285 content::URLFetcher::RequestType request_type, |
| 283 content::URLFetcherDelegate* d) OVERRIDE; | 286 content::URLFetcherDelegate* d) OVERRIDE; |
| 284 | 287 |
| 285 }; | 288 }; |
| 286 | 289 |
| 287 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ | 290 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ |
| OLD | NEW |