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

Unified Diff: content/common/resource_dispatcher.cc

Issue 10828252: Support FileSystem URL in File object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: 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";

Powered by Google App Engine
This is Rietveld 408576698