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

Unified Diff: net/url_request/url_fetcher_impl.cc

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
Index: net/url_request/url_fetcher_impl.cc
diff --git a/net/url_request/url_fetcher_impl.cc b/net/url_request/url_fetcher_impl.cc
index 106bc0283b85c1f6dd7f06c162e795b077c4824b..d900a8f42770ef0de3939724dcdee8220b623d5f 100644
--- a/net/url_request/url_fetcher_impl.cc
+++ b/net/url_request/url_fetcher_impl.cc
@@ -33,7 +33,24 @@ void URLFetcherImpl::SetUploadFilePath(
const std::string& upload_content_type,
const base::FilePath& file_path,
scoped_refptr<base::TaskRunner> file_task_runner) {
- core_->SetUploadFilePath(upload_content_type, file_path, file_task_runner);
+ core_->SetUploadFilePath(upload_content_type,
+ file_path,
+ 0,
+ kuint64max,
+ file_task_runner);
+}
+
+void URLFetcherImpl::SetUploadFilePathWithRange(
+ const std::string& upload_content_type,
+ const base::FilePath& file_path,
+ uint64 range_offset,
+ uint64 range_length,
+ scoped_refptr<base::TaskRunner> file_task_runner) {
+ core_->SetUploadFilePath(upload_content_type,
+ file_path,
+ range_offset,
+ range_length,
+ file_task_runner);
}
void URLFetcherImpl::SetChunkedUpload(const std::string& content_type) {

Powered by Google App Engine
This is Rietveld 408576698