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 "content/public/common/webkit_param_traits.h" | 9 #include "content/public/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) | 14 IPC_ENUM_TRAITS(webkit_blob::BlobData::Type) |
15 | 15 |
16 IPC_STRUCT_TRAITS_BEGIN(webkit_blob::BlobData::Item) | 16 IPC_STRUCT_TRAITS_BEGIN(webkit_blob::BlobData::Item) |
17 IPC_STRUCT_TRAITS_MEMBER(type) | 17 IPC_STRUCT_TRAITS_MEMBER(type) |
18 IPC_STRUCT_TRAITS_MEMBER(data) | 18 IPC_STRUCT_TRAITS_MEMBER(data) |
19 IPC_STRUCT_TRAITS_MEMBER(file_path) | 19 IPC_STRUCT_TRAITS_MEMBER(file_path) |
20 IPC_STRUCT_TRAITS_MEMBER(blob_url) | 20 IPC_STRUCT_TRAITS_MEMBER(url) |
21 IPC_STRUCT_TRAITS_MEMBER(offset) | 21 IPC_STRUCT_TRAITS_MEMBER(offset) |
22 IPC_STRUCT_TRAITS_MEMBER(length) | 22 IPC_STRUCT_TRAITS_MEMBER(length) |
23 IPC_STRUCT_TRAITS_MEMBER(expected_modification_time) | 23 IPC_STRUCT_TRAITS_MEMBER(expected_modification_time) |
24 IPC_STRUCT_TRAITS_END() | 24 IPC_STRUCT_TRAITS_END() |
25 | 25 |
26 // Blob messages sent from the renderer to the browser. | 26 // Blob messages sent from the renderer to the browser. |
27 | 27 |
28 | 28 |
29 // Registers a blob as being built. | 29 // Registers a blob as being built. |
30 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, | 30 IPC_MESSAGE_CONTROL1(BlobHostMsg_StartBuildingBlob, |
(...skipping 17 matching lines...) Expand all Loading... |
48 | 48 |
49 // Creates a new blob that's a clone of an existing src blob. | 49 // Creates a new blob that's a clone of an existing src blob. |
50 // The source blob must be fully built. | 50 // The source blob must be fully built. |
51 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, | 51 IPC_MESSAGE_CONTROL2(BlobHostMsg_CloneBlob, |
52 GURL /* url */, | 52 GURL /* url */, |
53 GURL /* src_url */) | 53 GURL /* src_url */) |
54 | 54 |
55 // Removes a blob. | 55 // Removes a blob. |
56 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, | 56 IPC_MESSAGE_CONTROL1(BlobHostMsg_RemoveBlob, |
57 GURL /* url */) | 57 GURL /* url */) |
OLD | NEW |