Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: net/url_request/test_url_fetcher_factory.h

Issue 14578004: Support range uploading of a file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 URLFetcherDelegate* d); 85 URLFetcherDelegate* d);
86 virtual ~TestURLFetcher(); 86 virtual ~TestURLFetcher();
87 87
88 // URLFetcher implementation 88 // URLFetcher implementation
89 virtual void SetUploadData(const std::string& upload_content_type, 89 virtual void SetUploadData(const std::string& upload_content_type,
90 const std::string& upload_content) OVERRIDE; 90 const std::string& upload_content) OVERRIDE;
91 virtual void SetUploadFilePath( 91 virtual void SetUploadFilePath(
92 const std::string& upload_content_type, 92 const std::string& upload_content_type,
93 const base::FilePath& file_path, 93 const base::FilePath& file_path,
94 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE; 94 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE;
95 virtual void SetUploadFilePathWithRange(
96 const std::string& upload_content_type,
97 const base::FilePath& file_path,
98 uint64 range_offset,
99 uint64 range_length,
100 scoped_refptr<base::TaskRunner> file_task_runner) OVERRIDE;
95 virtual void SetChunkedUpload( 101 virtual void SetChunkedUpload(
96 const std::string& upload_content_type) OVERRIDE; 102 const std::string& upload_content_type) OVERRIDE;
97 // Overriden to cache the chunks uploaded. Caller can read back the uploaded 103 // Overriden to cache the chunks uploaded. Caller can read back the uploaded
98 // chunks with the upload_chunks() accessor. 104 // chunks with the upload_chunks() accessor.
99 virtual void AppendChunkToUpload(const std::string& data, 105 virtual void AppendChunkToUpload(const std::string& data,
100 bool is_last_chunk) OVERRIDE; 106 bool is_last_chunk) OVERRIDE;
101 virtual void SetLoadFlags(int load_flags) OVERRIDE; 107 virtual void SetLoadFlags(int load_flags) OVERRIDE;
102 virtual int GetLoadFlags() const OVERRIDE; 108 virtual int GetLoadFlags() const OVERRIDE;
103 virtual void SetReferrer(const std::string& referrer) OVERRIDE; 109 virtual void SetReferrer(const std::string& referrer) OVERRIDE;
104 virtual void SetExtraRequestHeaders( 110 virtual void SetExtraRequestHeaders(
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 int id, 417 int id,
412 const GURL& url, 418 const GURL& url,
413 URLFetcher::RequestType request_type, 419 URLFetcher::RequestType request_type,
414 URLFetcherDelegate* d) OVERRIDE; 420 URLFetcherDelegate* d) OVERRIDE;
415 421
416 }; 422 };
417 423
418 } // namespace net 424 } // namespace net
419 425
420 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ 426 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/test_url_fetcher_factory.cc » ('j') | net/url_request/url_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698