OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 const std::string& upload_content_type) OVERRIDE; | 67 const std::string& upload_content_type) OVERRIDE; |
68 // Overriden to cache the chunks uploaded. Caller can read back the uploaded | 68 // Overriden to cache the chunks uploaded. Caller can read back the uploaded |
69 // chunks with the upload_chunks() accessor. | 69 // chunks with the upload_chunks() accessor. |
70 virtual void AppendChunkToUpload(const std::string& data, | 70 virtual void AppendChunkToUpload(const std::string& data, |
71 bool is_last_chunk) OVERRIDE; | 71 bool is_last_chunk) OVERRIDE; |
72 virtual void SetLoadFlags(int load_flags) OVERRIDE; | 72 virtual void SetLoadFlags(int load_flags) OVERRIDE; |
73 virtual int GetLoadFlags() const OVERRIDE; | 73 virtual int GetLoadFlags() const OVERRIDE; |
74 virtual void SetReferrer(const std::string& referrer) OVERRIDE; | 74 virtual void SetReferrer(const std::string& referrer) OVERRIDE; |
75 virtual void SetExtraRequestHeaders( | 75 virtual void SetExtraRequestHeaders( |
76 const std::string& extra_request_headers) OVERRIDE; | 76 const std::string& extra_request_headers) OVERRIDE; |
| 77 virtual void AddExtraRequestHeader(const std::string& header_line) OVERRIDE; |
77 virtual void GetExtraRequestHeaders( | 78 virtual void GetExtraRequestHeaders( |
78 net::HttpRequestHeaders* headers) OVERRIDE; | 79 net::HttpRequestHeaders* headers) OVERRIDE; |
79 virtual void SetRequestContext( | 80 virtual void SetRequestContext( |
80 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 81 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
81 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; | 82 virtual void SetAutomaticallyRetryOn5xx(bool retry) OVERRIDE; |
82 virtual void SetMaxRetries(int max_retries) OVERRIDE; | 83 virtual void SetMaxRetries(int max_retries) OVERRIDE; |
83 virtual int GetMaxRetries() const OVERRIDE; | 84 virtual int GetMaxRetries() const OVERRIDE; |
84 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; | 85 virtual base::TimeDelta GetBackoffDelay() const OVERRIDE; |
85 virtual void SaveResponseToTemporaryFile( | 86 virtual void SaveResponseToTemporaryFile( |
86 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; | 87 scoped_refptr<base::MessageLoopProxy> file_message_loop_proxy) OVERRIDE; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // This method will create a real URLFetcher. | 277 // This method will create a real URLFetcher. |
277 virtual content::URLFetcher* CreateURLFetcher( | 278 virtual content::URLFetcher* CreateURLFetcher( |
278 int id, | 279 int id, |
279 const GURL& url, | 280 const GURL& url, |
280 content::URLFetcher::RequestType request_type, | 281 content::URLFetcher::RequestType request_type, |
281 content::URLFetcherDelegate* d) OVERRIDE; | 282 content::URLFetcherDelegate* d) OVERRIDE; |
282 | 283 |
283 }; | 284 }; |
284 | 285 |
285 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ | 286 #endif // CONTENT_TEST_TEST_URL_FETCHER_FACTORY_H_ |
OLD | NEW |