| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 // URLFetcher implementation | 89 // URLFetcher implementation |
| 90 void SetUploadData(const std::string& upload_content_type, | 90 void SetUploadData(const std::string& upload_content_type, |
| 91 const std::string& upload_content) override; | 91 const std::string& upload_content) override; |
| 92 void SetUploadFilePath( | 92 void SetUploadFilePath( |
| 93 const std::string& upload_content_type, | 93 const std::string& upload_content_type, |
| 94 const base::FilePath& file_path, | 94 const base::FilePath& file_path, |
| 95 uint64 range_offset, | 95 uint64 range_offset, |
| 96 uint64 range_length, | 96 uint64 range_length, |
| 97 scoped_refptr<base::TaskRunner> file_task_runner) override; | 97 scoped_refptr<base::TaskRunner> file_task_runner) override; |
| 98 void SetUploadStreamFactory( |
| 99 const std::string& upload_content_type, |
| 100 const CreateUploadStreamCallback& callback) override; |
| 98 void SetChunkedUpload(const std::string& upload_content_type) override; | 101 void SetChunkedUpload(const std::string& upload_content_type) override; |
| 99 // Overriden to cache the chunks uploaded. Caller can read back the uploaded | 102 // Overriden to cache the chunks uploaded. Caller can read back the uploaded |
| 100 // chunks with the upload_chunks() accessor. | 103 // chunks with the upload_chunks() accessor. |
| 101 void AppendChunkToUpload(const std::string& data, | 104 void AppendChunkToUpload(const std::string& data, |
| 102 bool is_last_chunk) override; | 105 bool is_last_chunk) override; |
| 103 void SetLoadFlags(int load_flags) override; | 106 void SetLoadFlags(int load_flags) override; |
| 104 int GetLoadFlags() const override; | 107 int GetLoadFlags() const override; |
| 105 void SetReferrer(const std::string& referrer) override; | 108 void SetReferrer(const std::string& referrer) override; |
| 106 void SetReferrerPolicy(URLRequest::ReferrerPolicy referrer_policy) override; | 109 void SetReferrerPolicy(URLRequest::ReferrerPolicy referrer_policy) override; |
| 107 void SetExtraRequestHeaders( | 110 void SetExtraRequestHeaders( |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 // This method will create a real URLFetcher. | 455 // This method will create a real URLFetcher. |
| 453 URLFetcher* CreateURLFetcher(int id, | 456 URLFetcher* CreateURLFetcher(int id, |
| 454 const GURL& url, | 457 const GURL& url, |
| 455 URLFetcher::RequestType request_type, | 458 URLFetcher::RequestType request_type, |
| 456 URLFetcherDelegate* d) override; | 459 URLFetcherDelegate* d) override; |
| 457 }; | 460 }; |
| 458 | 461 |
| 459 } // namespace net | 462 } // namespace net |
| 460 | 463 |
| 461 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 464 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
| OLD | NEW |