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

Unified Diff: chrome/common/resource_dispatcher.cc

Issue 3282003: Support handling blob URL and resolve blob references in upload data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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: chrome/common/resource_dispatcher.cc
===================================================================
--- chrome/common/resource_dispatcher.cc (revision 57912)
+++ chrome/common/resource_dispatcher.cc (working copy)
@@ -60,6 +60,7 @@
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);
virtual void Cancel();
@@ -169,6 +170,14 @@
expected_modification_time);
}
+void IPCResourceLoaderBridge::AppendBlobToUpload(const GURL& blob_url) {
+ DCHECK(request_id_ == -1) << "request already started";
+
+ if (!request_.upload_data)
+ request_.upload_data = new net::UploadData();
+ request_.upload_data->AppendBlob(blob_url);
+}
+
void IPCResourceLoaderBridge::SetUploadIdentifier(int64 identifier) {
DCHECK(request_id_ == -1) << "request already started";

Powered by Google App Engine
This is Rietveld 408576698