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

Unified Diff: content/common/webblob_messages.h

Issue 7974011: Break large blobs into multiple ipcs during creation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/webblob_messages.h
===================================================================
--- content/common/webblob_messages.h (revision 102629)
+++ content/common/webblob_messages.h (working copy)
@@ -11,19 +11,41 @@
#define IPC_MESSAGE_START BlobMsgStart
+IPC_ENUM_TRAITS(webkit_blob::BlobData::Type)
+
+IPC_STRUCT_TRAITS_BEGIN(webkit_blob::BlobData::Item)
+ IPC_STRUCT_TRAITS_MEMBER(type_)
+ IPC_STRUCT_TRAITS_MEMBER(data_)
+ IPC_STRUCT_TRAITS_MEMBER(file_path_)
+ IPC_STRUCT_TRAITS_MEMBER(blob_url_)
+ IPC_STRUCT_TRAITS_MEMBER(offset_)
+ IPC_STRUCT_TRAITS_MEMBER(length_)
+ IPC_STRUCT_TRAITS_MEMBER(expected_modification_time_)
+IPC_STRUCT_TRAITS_END()
+
// Blob messages sent from the renderer to the browser.
+
// Registers a blob URL referring to the specified blob data.
-IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterBlobUrl,
+IPC_MESSAGE_CONTROL1(BlobHostMsg_RegisterUnfinalizedBlobUrl,
+ GURL /* url */)
+
+// Appends data to an unfinalized blob.
+IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
GURL /* url */,
- scoped_refptr<webkit_blob::BlobData> /* blob_data */)
+ webkit_blob::BlobData::Item)
+// Finalizes a blob.
+IPC_MESSAGE_CONTROL2(BlobHostMsg_FinalizeBlob,
+ GURL /* url */,
+ std::string /* content_type */)
+
// Registers a blob URL referring to the blob data identified by the specified
-// source URL.
+// source URL. The source URL must be a finalized blob.
IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterBlobUrlFrom,
GURL /* url */,
GURL /* src_url */)
-// Unregister a blob URL.
+// Unregister a blob URL, finalized or unfinalized.
IPC_MESSAGE_CONTROL1(BlobHostMsg_UnregisterBlobUrl,
GURL /* url */)

Powered by Google App Engine
This is Rietveld 408576698