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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for HTML5 Blob. 5 // IPC messages for HTML5 Blob.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/common/common_param_traits.h" 8 #include "content/common/common_param_traits.h"
9 #include "content/common/webkit_param_traits.h" 9 #include "content/common/webkit_param_traits.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 11
12 #define IPC_MESSAGE_START BlobMsgStart 12 #define IPC_MESSAGE_START BlobMsgStart
13 13
14 IPC_ENUM_TRAITS(webkit_blob::BlobData::Type)
15
16 IPC_STRUCT_TRAITS_BEGIN(webkit_blob::BlobData::Item)
17 IPC_STRUCT_TRAITS_MEMBER(type_)
18 IPC_STRUCT_TRAITS_MEMBER(data_)
19 IPC_STRUCT_TRAITS_MEMBER(file_path_)
20 IPC_STRUCT_TRAITS_MEMBER(blob_url_)
21 IPC_STRUCT_TRAITS_MEMBER(offset_)
22 IPC_STRUCT_TRAITS_MEMBER(length_)
23 IPC_STRUCT_TRAITS_MEMBER(expected_modification_time_)
24 IPC_STRUCT_TRAITS_END()
25
14 // Blob messages sent from the renderer to the browser. 26 // Blob messages sent from the renderer to the browser.
15 27
28
16 // Registers a blob URL referring to the specified blob data. 29 // Registers a blob URL referring to the specified blob data.
17 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterBlobUrl, 30 IPC_MESSAGE_CONTROL1(BlobHostMsg_RegisterUnfinalizedBlobUrl,
31 GURL /* url */)
32
33 // Appends data to an unfinalized blob.
34 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem,
18 GURL /* url */, 35 GURL /* url */,
19 scoped_refptr<webkit_blob::BlobData> /* blob_data */) 36 webkit_blob::BlobData::Item)
37
38 // Finalizes a blob.
39 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinalizeBlob,
40 GURL /* url */,
41 std::string /* content_type */)
20 42
21 // Registers a blob URL referring to the blob data identified by the specified 43 // Registers a blob URL referring to the blob data identified by the specified
22 // source URL. 44 // source URL. The source URL must be a finalized blob.
23 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterBlobUrlFrom, 45 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterBlobUrlFrom,
24 GURL /* url */, 46 GURL /* url */,
25 GURL /* src_url */) 47 GURL /* src_url */)
26 48
27 // Unregister a blob URL. 49 // Unregister a blob URL, finalized or unfinalized.
28 IPC_MESSAGE_CONTROL1(BlobHostMsg_UnregisterBlobUrl, 50 IPC_MESSAGE_CONTROL1(BlobHostMsg_UnregisterBlobUrl,
29 GURL /* url */) 51 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698