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

Unified Diff: webkit/blob/blob_data.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: webkit/blob/blob_data.cc
===================================================================
--- webkit/blob/blob_data.cc (revision 57912)
+++ webkit/blob/blob_data.cc (working copy)
@@ -33,8 +33,11 @@
while (data.itemAt(i++, item)) {
switch (item.type) {
case WebBlobData::Item::TypeData:
- if (!item.data.isEmpty())
+ if (!item.data.isEmpty()) {
+ // WebBlobData does not allow partial data.
+ DCHECK(!item.offset && item.length == -1);
AppendData(item.data);
+ }
break;
case WebBlobData::Item::TypeFile:
AppendFile(

Powered by Google App Engine
This is Rietveld 408576698