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

Unified Diff: net/base/upload_data.cc

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (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
« no previous file with comments | « net/base/upload_data.h ('k') | webkit/blob/blob_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/upload_data.cc
===================================================================
--- net/base/upload_data.cc (revision 57697)
+++ net/base/upload_data.cc (working copy)
@@ -24,6 +24,9 @@
if (type_ == TYPE_BYTES)
return static_cast<uint64>(bytes_.size());
+ else if (type_ == TYPE_BLOB)
+ // The blob reference will be resolved later.
+ return 0;
DCHECK_EQ(TYPE_FILE, type_);
DCHECK(!file_stream_);
« no previous file with comments | « net/base/upload_data.h ('k') | webkit/blob/blob_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698