| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void SetLoadFlags(int load_flags) OVERRIDE; | 73 virtual void SetLoadFlags(int load_flags) OVERRIDE; |
| 74 virtual int GetLoadFlags() const OVERRIDE; | 74 virtual int GetLoadFlags() const OVERRIDE; |
| 75 virtual void SetReferrer(const std::string& referrer) OVERRIDE; | 75 virtual void SetReferrer(const std::string& referrer) OVERRIDE; |
| 76 virtual void SetExtraRequestHeaders( | 76 virtual void SetExtraRequestHeaders( |
| 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) const OVERRIDE; | 80 net::HttpRequestHeaders* headers) const 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 AssociateWithRenderView(const GURL& first_party_for_cookies, | 83 virtual void SetFirstPartyForCookies( |
| 84 int render_process_id, | 84 const GURL& first_party_for_cookies) OVERRIDE; |
| 85 int render_view_id) OVERRIDE; | 85 virtual void SetURLRequestUserData( |
| 86 const void* key, |
| 87 const CreateDataCallback& create_data_callback) OVERRIDE; |
| 86 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 88 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
| 87 virtual void SetMaxRetries(int max_retries) OVERRIDE; | 89 virtual void SetMaxRetries(int max_retries) OVERRIDE; |
| 88 virtual int GetMaxRetries() const OVERRIDE; | 90 virtual int GetMaxRetries() const OVERRIDE; |
| 89 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 91 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
| 90 virtual void SaveResponseToFileAtPath( | 92 virtual void SaveResponseToFileAtPath( |
| 91 const FilePath& file_path, | 93 const FilePath& file_path, |
| 92 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 94 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; |
| 93 virtual void SaveResponseToTemporaryFile( | 95 virtual void SaveResponseToTemporaryFile( |
| 94 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 96 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; |
| 95 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; | 97 virtual net::HttpResponseHeaders* GetResponseHeaders() const OVERRIDE; |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // This method will create a real URLFetcher. | 284 // This method will create a real URLFetcher. |
| 283 virtual content::URLFetcher* CreateURLFetcher( | 285 virtual content::URLFetcher* CreateURLFetcher( |
| 284 int id, | 286 int id, |
| 285 const GURL& url, | 287 const GURL& url, |
| 286 content::URLFetcher::RequestType request_type, | 288 content::URLFetcher::RequestType request_type, |
| 287 content::URLFetcherDelegate* d) OVERRIDE; | 289 content::URLFetcherDelegate* d) OVERRIDE; |
| 288 | 290 |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ | 293 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ |
| OLD | NEW |