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

Unified Diff: net/url_request/url_fetcher.h

Issue 14578004: Support range uploading of a file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher.h
diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h
index 9d2be1d80b51e61c6f0b4246a628232319ac02c7..326c764494172f76a87e578d7af6615d286ec57d 100644
--- a/net/url_request/url_fetcher.h
+++ b/net/url_request/url_fetcher.h
@@ -141,6 +141,16 @@ class NET_EXPORT URLFetcher {
const base::FilePath& file_path,
scoped_refptr<base::TaskRunner> file_task_runner) = 0;
+ // Sets data only needed by POSTs as same as SetUploadFilePath().
+ // The only difference is that this method takes the |range_offset| and
+ // |range_length| to upload a part of the file at |file_path|.
+ virtual void SetUploadFilePathWithRange(
+ const std::string& upload_content_type,
+ const base::FilePath& file_path,
+ uint64 range_offset,
+ uint64 range_length,
hashimoto 2013/04/30 10:27:36 Instead of adding a new method, can we add these r
hidehiko 2013/04/30 11:30:14 We can, but should we do that? I'm thinking that s
hashimoto 2013/05/01 06:39:21 I don't think we should maintain two unpopular met
hidehiko 2013/05/01 13:51:49 Ok. Done.
+ scoped_refptr<base::TaskRunner> file_task_runner) = 0;
+
// Indicates that the POST data is sent via chunked transfer encoding.
// This may only be called before calling Start().
// Use AppendChunkToUpload() to give the data chunks after calling Start().
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698