| 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 and Stream. | 5 // IPC messages for HTML5 Blob and Stream. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/common/common_param_traits.h" | 11 #include "content/public/common/common_param_traits.h" |
| 12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
| 13 #include "storage/common/data_element.h" | 13 #include "storage/common/data_element.h" |
| 14 | 14 |
| 15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
| 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 17 #define IPC_MESSAGE_START BlobMsgStart | 17 #define IPC_MESSAGE_START BlobMsgStart |
| 18 | 18 |
| 19 // Blob messages sent from the renderer to the browser. | 19 // Blob messages sent from the renderer to the browser. |
| 20 | 20 |
| 21 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding, | 21 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuilding, |
| 22 std::string /*uuid */) | 22 std::string /*uuid */) |
| 23 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, | 23 IPC_MESSAGE_CONTROL2(BlobHostMsg_AppendBlobDataItem, |
| 24 std::string /* uuid */, | 24 std::string /* uuid */, |
| 25 storage::DataElement) | 25 storage::DataElement) |
| 26 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, | 26 IPC_SYNC_MESSAGE_CONTROL3_0(BlobHostMsg_SyncAppendSharedMemory, |
| 27 std::string /*uuid*/, | 27 std::string /*uuid*/, |
| 28 base::SharedMemoryHandle, | 28 base::SharedMemoryHandle, |
| 29 size_t /* buffer size */) | 29 uint32_t /* buffer size */) |
| 30 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding, | 30 IPC_MESSAGE_CONTROL2(BlobHostMsg_FinishBuilding, |
| 31 std::string /* uuid */, | 31 std::string /* uuid */, |
| 32 std::string /* content_type */) | 32 std::string /* content_type */) |
| 33 | 33 |
| 34 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount, | 34 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount, |
| 35 std::string /* uuid */) | 35 std::string /* uuid */) |
| 36 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount, | 36 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount, |
| 37 std::string /* uuid */) | 37 std::string /* uuid */) |
| 38 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL, | 38 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL, |
| 39 GURL, | 39 GURL, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 // Appends data to a stream being built. | 51 // Appends data to a stream being built. |
| 52 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem, | 52 IPC_MESSAGE_CONTROL2(StreamHostMsg_AppendBlobDataItem, |
| 53 GURL /* url */, | 53 GURL /* url */, |
| 54 storage::DataElement) | 54 storage::DataElement) |
| 55 | 55 |
| 56 // Appends data to a stream being built. | 56 // Appends data to a stream being built. |
| 57 IPC_SYNC_MESSAGE_CONTROL3_0(StreamHostMsg_SyncAppendSharedMemory, | 57 IPC_SYNC_MESSAGE_CONTROL3_0(StreamHostMsg_SyncAppendSharedMemory, |
| 58 GURL /* url */, | 58 GURL /* url */, |
| 59 base::SharedMemoryHandle, | 59 base::SharedMemoryHandle, |
| 60 size_t /* buffer size */) | 60 uint32_t /* buffer size */) |
| 61 | 61 |
| 62 // Flushes contents buffered in the stream. | 62 // Flushes contents buffered in the stream. |
| 63 IPC_MESSAGE_CONTROL1(StreamHostMsg_Flush, | 63 IPC_MESSAGE_CONTROL1(StreamHostMsg_Flush, |
| 64 GURL /* url */) | 64 GURL /* url */) |
| 65 | 65 |
| 66 // Finishes building a stream. | 66 // Finishes building a stream. |
| 67 IPC_MESSAGE_CONTROL1(StreamHostMsg_FinishBuilding, | 67 IPC_MESSAGE_CONTROL1(StreamHostMsg_FinishBuilding, |
| 68 GURL /* url */) | 68 GURL /* url */) |
| 69 | 69 |
| 70 // Aborts building a stream. | 70 // Aborts building a stream. |
| 71 IPC_MESSAGE_CONTROL1(StreamHostMsg_AbortBuilding, | 71 IPC_MESSAGE_CONTROL1(StreamHostMsg_AbortBuilding, |
| 72 GURL /* url */) | 72 GURL /* url */) |
| 73 | 73 |
| 74 // Creates a new stream that's a clone of an existing src stream. | 74 // Creates a new stream that's a clone of an existing src stream. |
| 75 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, | 75 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, |
| 76 GURL /* url */, | 76 GURL /* url */, |
| 77 GURL /* src_url */) | 77 GURL /* src_url */) |
| 78 | 78 |
| 79 // Removes a stream. | 79 // Removes a stream. |
| 80 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, | 80 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, |
| 81 GURL /* url */) | 81 GURL /* url */) |
| OLD | NEW |