Index: content/common/resource_dispatcher.cc |
diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc |
index 5e384dea782ad08188755335eabd8b4dcb92e8c3..17aac42f1df0a8eadc8bb951b4bc287cdada0fed 100644 |
--- a/content/common/resource_dispatcher.cc |
+++ b/content/common/resource_dispatcher.cc |
@@ -53,6 +53,11 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge { |
uint64 offset, |
uint64 length, |
const base::Time& expected_modification_time); |
+ virtual void AppendFileSystemFileRangeToUpload( |
+ const GURL& url, |
+ uint64 offset, |
+ uint64 length, |
+ const base::Time& expected_modification_time); |
virtual void AppendBlobToUpload(const GURL& blob_url); |
virtual void SetUploadIdentifier(int64 identifier); |
virtual bool Start(Peer* peer); |
@@ -166,6 +171,17 @@ void IPCResourceLoaderBridge::AppendFileRangeToUpload( |
expected_modification_time); |
} |
+void IPCResourceLoaderBridge::AppendFileSystemFileRangeToUpload( |
+ const GURL& url, uint64 offset, uint64 length, |
+ const base::Time& expected_modification_time) { |
+ DCHECK(request_id_ == -1) << "request already started"; |
+ |
+ if (!request_.upload_data) |
+ request_.upload_data = new net::UploadData(); |
+ request_.upload_data->AppendFileSystemFileRange( |
+ url, offset, length, expected_modification_time); |
+} |
+ |
void IPCResourceLoaderBridge::AppendBlobToUpload(const GURL& blob_url) { |
DCHECK(request_id_ == -1) << "request already started"; |