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/blob/blob_data.h" | 10 #include "webkit/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 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob2, |
17 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, | 17 std::string /*uuid */) |
18 GURL /* url */) | 18 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem2, |
19 | 19 std::string /* uuid */, |
20 // Appends data to a blob being built. | |
21 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, | |
22 GURL /* url */, | |
23 webkit_blob::BlobData::Item) | 20 webkit_blob::BlobData::Item) |
24 | 21 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_AppendSharedMemory2, |
25 // Appends data to a blob being built. | 22 std::string /*uuid*/, |
26 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, | |
27 GURL /* url */, | |
28 base::SharedMemoryHandle, | 23 base::SharedMemoryHandle, |
29 size_t /* buffer size */) | 24 size_t /* buffer size */) |
30 | 25 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob2, |
31 // Finishes building a blob. | 26 std::string /* uuid */, |
32 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuildingBlob, | |
33 GURL /* url */, | |
34 std::string /* content_type */) | 27 std::string /* content_type */) |
35 | 28 |
36 // Creates a new blob that's a clone of an existing src blob. | 29 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementBlobRefCount, |
37 // The source blob must be fully built. | 30 std::string /* uuid */) |
38 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, | 31 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementBlobRefCount, |
39 GURL /* url */, | 32 std::string /* uuid */) |
40 GURL /* src_url */) | 33 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicBlobURL, |
41 | 34 GURL, |
42 // Removes a blob. | 35 std::string /* uuid */) |
43 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, | 36 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicBlobURL, |
44 GURL /* url */) | 37 GURL) |
OLD | NEW |