| 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 <set> | 10 #include <set> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 IPC_STRUCT_TRAITS_MEMBER(handle_index) | 41 IPC_STRUCT_TRAITS_MEMBER(handle_index) |
| 42 IPC_STRUCT_TRAITS_MEMBER(handle_offset) | 42 IPC_STRUCT_TRAITS_MEMBER(handle_offset) |
| 43 IPC_STRUCT_TRAITS_END() | 43 IPC_STRUCT_TRAITS_END() |
| 44 | 44 |
| 45 IPC_STRUCT_TRAITS_BEGIN(storage::BlobItemBytesResponse) | 45 IPC_STRUCT_TRAITS_BEGIN(storage::BlobItemBytesResponse) |
| 46 IPC_STRUCT_TRAITS_MEMBER(request_number) | 46 IPC_STRUCT_TRAITS_MEMBER(request_number) |
| 47 IPC_STRUCT_TRAITS_MEMBER(inline_data) | 47 IPC_STRUCT_TRAITS_MEMBER(inline_data) |
| 48 IPC_STRUCT_TRAITS_MEMBER(time_file_modified) | 48 IPC_STRUCT_TRAITS_MEMBER(time_file_modified) |
| 49 IPC_STRUCT_TRAITS_END() | 49 IPC_STRUCT_TRAITS_END() |
| 50 | 50 |
| 51 // This message is to tell the browser that we will be building a blob. | |
| 52 IPC_MESSAGE_CONTROL4(BlobStorageMsg_RegisterBlobUUID, | |
| 53 std::string /* uuid */, | |
| 54 std::string /* content_type */, | |
| 55 std::string /* content_disposition */, | |
| 56 std::set<std::string> /* referenced_blob_uuids */) | |
| 57 | |
| 58 // The DataElements are used to: | |
| 59 // * describe & transport non-memory resources (blobs, files, etc) | |
| 60 // * describe the size of memory items | |
| 61 // * 'shortcut' transport the memory up to the IPC limit so the browser can use | |
| 62 // it if it's not currently full. | |
| 63 // See https://bit.ly/BlobStorageRefactor | |
| 64 IPC_MESSAGE_CONTROL2(BlobStorageMsg_StartBuildingBlob, | |
| 65 std::string /* uuid */, | |
| 66 std::vector<storage::DataElement> /* item_descriptions */) | |
| 67 | |
| 68 IPC_MESSAGE_CONTROL4( | 51 IPC_MESSAGE_CONTROL4( |
| 69 BlobStorageMsg_RequestMemoryItem, | 52 BlobStorageMsg_RequestMemoryItem, |
| 70 std::string /* uuid */, | 53 std::string /* uuid */, |
| 71 std::vector<storage::BlobItemBytesRequest> /* requests */, | 54 std::vector<storage::BlobItemBytesRequest> /* requests */, |
| 72 std::vector<base::SharedMemoryHandle> /* memory_handles */, | 55 std::vector<base::SharedMemoryHandle> /* memory_handles */, |
| 73 std::vector<IPC::PlatformFileForTransit> /* file_handles */) | 56 std::vector<IPC::PlatformFileForTransit> /* file_handles */) |
| 74 | 57 |
| 75 IPC_MESSAGE_CONTROL2( | 58 IPC_MESSAGE_CONTROL2( |
| 76 BlobStorageMsg_MemoryItemResponse, | 59 BlobStorageMsg_MemoryItemResponse, |
| 77 std::string /* uuid */, | 60 std::string /* uuid */, |
| 78 std::vector<storage::BlobItemBytesResponse> /* responses */) | 61 std::vector<storage::BlobItemBytesResponse> /* responses */) |
| 79 | 62 |
| 80 IPC_MESSAGE_CONTROL2(BlobStorageMsg_CancelBuildingBlob, | 63 IPC_MESSAGE_CONTROL2(BlobStorageMsg_CancelBuildingBlob, |
| 81 std::string /* uuid */, | 64 std::string /* uuid */, |
| 82 storage::IPCBlobCreationCancelCode /* code */) | 65 storage::IPCBlobCreationCancelCode /* code */) |
| 83 | 66 |
| 84 IPC_MESSAGE_CONTROL1(BlobStorageMsg_DoneBuildingBlob, std::string /* uuid */) | |
| 85 | |
| 86 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount, | 67 IPC_MESSAGE_CONTROL1(BlobHostMsg_IncrementRefCount, |
| 87 std::string /* uuid */) | 68 std::string /* uuid */) |
| 88 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount, | 69 IPC_MESSAGE_CONTROL1(BlobHostMsg_DecrementRefCount, |
| 89 std::string /* uuid */) | 70 std::string /* uuid */) |
| 90 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL, | 71 IPC_MESSAGE_CONTROL2(BlobHostMsg_RegisterPublicURL, |
| 91 GURL, | 72 GURL, |
| 92 std::string /* uuid */) | 73 std::string /* uuid */) |
| 93 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicURL, | 74 IPC_MESSAGE_CONTROL1(BlobHostMsg_RevokePublicURL, |
| 94 GURL) | 75 GURL) |
| 95 | 76 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 124 GURL /* url */) | 105 GURL /* url */) |
| 125 | 106 |
| 126 // Creates a new stream that's a clone of an existing src stream. | 107 // Creates a new stream that's a clone of an existing src stream. |
| 127 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, | 108 IPC_MESSAGE_CONTROL2(StreamHostMsg_Clone, |
| 128 GURL /* url */, | 109 GURL /* url */, |
| 129 GURL /* src_url */) | 110 GURL /* src_url */) |
| 130 | 111 |
| 131 // Removes a stream. | 112 // Removes a stream. |
| 132 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, | 113 IPC_MESSAGE_CONTROL1(StreamHostMsg_Remove, |
| 133 GURL /* url */) | 114 GURL /* url */) |
| OLD | NEW |