OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/common/common_param_traits.h" | 8 #include "content/public/common/common_param_traits.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "webkit/common/blob/blob_data.h" | 10 #include "webkit/common/blob/blob_data.h" |
11 | 11 |
12 #define IPC_MESSAGE_START BlobMsgStart | 12 #define IPC_MESSAGE_START BlobMsgStart |
13 | 13 |
14 // Blob messages sent from the renderer to the browser. | 14 // Blob messages sent from the renderer to the browser. |
15 | 15 |
16 // Registers a blob as being built. | 16 // Registers a blob as being built. |
17 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, | 17 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, |
18 GURL /* url */) | 18 GURL /* url */) |
19 | 19 |
20 // Appends data to a blob being built. | 20 // Registers a stream as being built. |
| 21 IPC_MESSAGE_CONTROL2(BlobHostMsg_StartBuildingStream, |
| 22 GURL /* url */, |
| 23 std::string /* content_type */) |
| 24 |
| 25 // Appends data to a blob or stream being built. |
21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, | 26 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, |
22 GURL /* url */, | 27 GURL /* url */, |
23 webkit_blob::BlobData::Item) | 28 webkit_blob::BlobData::Item) |
24 | 29 |
25 // Appends data to a blob being built. | 30 // Appends data to a blob being built. |
26 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, | 31 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, |
27 GURL /* url */, | 32 GURL /* url */, |
28 base::SharedMemoryHandle, | 33 base::SharedMemoryHandle, |
29 size_t /* buffer size */) | 34 size_t /* buffer size */) |
30 | 35 |
31 // Finishes building a blob. | 36 // Finishes building a blob or stream. |
32 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, | 37 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, |
33 GURL /* url */, | 38 GURL /* url */, |
34 std::string /* content_type */) | 39 std::string /* content_type */) |
35 | 40 |
36 // Creates a new blob that's a clone of an existing src blob. | 41 // Creates a new blob (or stream) that's a clone of an existing src blob (or |
37 // The source blob must be fully built. | 42 // stream). The source blob (or stream) must be fully built. |
38 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, | 43 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, |
39 GURL /* url */, | 44 GURL /* url */, |
40 GURL /* src_url */) | 45 GURL /* src_url */) |
41 | 46 |
42 // Removes a blob. | 47 // Removes a blob or stream. |
43 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, | 48 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, |
44 GURL /* url */) | 49 GURL /* url */) |
OLD | NEW |