OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. It is included by backing_store_messages_internal.h | 6 // header guard. It is included by backing_store_messages_internal.h |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 // This file needs to be included again, even though we're actually included | 9 // This file needs to be included again, even though we're actually included |
10 // from it via utility_messages.h. | 10 // from it via utility_messages.h. |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 | 12 |
13 // These are from the plugin to the renderer | 13 // These are from the plugin to the renderer |
14 IPC_BEGIN_MESSAGES(Ppapi) | 14 IPC_BEGIN_MESSAGES(Ppapi) |
15 // Loads the given plugin. | 15 // Loads the given plugin. |
16 IPC_MESSAGE_CONTROL2(PpapiMsg_LoadPlugin, | 16 IPC_MESSAGE_CONTROL3(PpapiMsg_LoadPlugin, |
17 base::ProcessHandle /* host_process_handle */, | |
17 FilePath /* path */, | 18 FilePath /* path */, |
18 int /* renderer_id */) | 19 int /* renderer_id */) |
19 | 20 |
20 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_InitializeModule, | 21 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_InitializeModule, |
21 PP_Module /* module_id */, | 22 PP_Module /* module_id */, |
22 bool /* result */) | 23 bool /* result */) |
23 | 24 |
24 // Sent in both directions to see if the other side supports the given | 25 // Sent in both directions to see if the other side supports the given |
25 // interface. | 26 // interface. |
26 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, | 27 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, |
27 std::string /* interface_name */, | 28 std::string /* interface_name */, |
28 bool /* result */) | 29 bool /* result */) |
29 | 30 |
30 // Way for the renderer to list all interfaces that is supports in advance to | 31 // Way for the renderer to list all interfaces that is supports in advance to |
31 // avoid extra IPC traffic. | 32 // avoid extra IPC traffic. |
32 IPC_MESSAGE_CONTROL1(PpapiMsg_DeclareInterfaces, | 33 IPC_MESSAGE_CONTROL1(PpapiMsg_DeclareInterfaces, |
33 std::vector<std::string> /* interfaces */) | 34 std::vector<std::string> /* interfaces */) |
34 | 35 |
35 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback, | 36 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback, |
36 uint32 /* serialized_callback */, | 37 uint32 /* serialized_callback */, |
37 int32 /* param */) | 38 int32 /* param */) |
38 | 39 |
40 // PPB_Audio. | |
41 | |
42 // Notifies the result of the audio stream create call. This is called in | |
43 // both error cases and in the normal success case. These cases are | |
44 // differentiated by the result code, which is one of the standard PPAPI | |
45 // result codes. | |
46 // | |
47 // The handler of this message should always code all of the handles passed | |
piman
2010/12/01 01:44:52
"should always code" ? You mean check ? or close ?
| |
48 // in, since some could be valid even in the error case. | |
49 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, | |
50 PP_Resource /* audio_id */, | |
51 int32_t /* result_code (will be != PP_OK on failure) */, | |
52 #if defined(OS_WIN) | |
53 base::SyncSocket::Handle /* socket_handle */, | |
54 #else | |
55 base::FileDescriptor /* socket_handle */, | |
56 #endif | |
piman
2010/12/01 01:44:52
Using IPC::PlatformFileForTransit (typedef'd to HA
| |
57 base::SharedMemoryHandle /* handle */, | |
58 int32_t /* length */) | |
59 | |
60 // PPB_Graphics2D. | |
61 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | |
62 PP_Resource /* graphics_2d */, | |
63 int32_t /* pp_error */) | |
64 | |
39 // PPP_Class. | 65 // PPP_Class. |
40 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, | 66 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
41 int64 /* ppp_class */, | 67 int64 /* ppp_class */, |
42 int64 /* object */, | 68 int64 /* object */, |
43 pp::proxy::SerializedVar /* property */, | 69 pp::proxy::SerializedVar /* property */, |
44 pp::proxy::SerializedVar /* out_exception */, | 70 pp::proxy::SerializedVar /* out_exception */, |
45 bool /* result */) | 71 bool /* result */) |
46 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, | 72 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
47 int64 /* ppp_class */, | 73 int64 /* ppp_class */, |
48 int64 /* object */, | 74 int64 /* object */, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, | 107 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
82 int64 /* ppp_class */, | 108 int64 /* ppp_class */, |
83 int64 /* object */, | 109 int64 /* object */, |
84 std::vector<pp::proxy::SerializedVar> /* args */, | 110 std::vector<pp::proxy::SerializedVar> /* args */, |
85 pp::proxy::SerializedVar /* out_exception */, | 111 pp::proxy::SerializedVar /* out_exception */, |
86 pp::proxy::SerializedVar /* result */) | 112 pp::proxy::SerializedVar /* result */) |
87 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, | 113 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
88 int64 /* ppp_class */, | 114 int64 /* ppp_class */, |
89 int64 /* object */) | 115 int64 /* object */) |
90 | 116 |
91 // PPB_Graphics2D. | |
92 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | |
93 PP_Resource /* graphics_2d */, | |
94 int32_t /* pp_error */) | |
95 | |
96 // PPP_Instance. | 117 // PPP_Instance. |
97 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, | 118 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
98 PP_Instance /* instance */, | 119 PP_Instance /* instance */, |
99 std::vector<std::string> /* argn */, | 120 std::vector<std::string> /* argn */, |
100 std::vector<std::string> /* argv */, | 121 std::vector<std::string> /* argv */, |
101 PP_Bool /* result */) | 122 PP_Bool /* result */) |
102 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, | 123 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, |
103 PP_Instance /* instance */) | 124 PP_Instance /* instance */) |
104 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, | 125 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
105 PP_Instance /* instance */, | 126 PP_Instance /* instance */, |
(...skipping 29 matching lines...) Expand all Loading... | |
135 std::string /* data */) | 156 std::string /* data */) |
136 IPC_END_MESSAGES(Ppapi) | 157 IPC_END_MESSAGES(Ppapi) |
137 | 158 |
138 // ----------------------------------------------------------------------------- | 159 // ----------------------------------------------------------------------------- |
139 // These are from the plugin to the renderer. | 160 // These are from the plugin to the renderer. |
140 IPC_BEGIN_MESSAGES(PpapiHost) | 161 IPC_BEGIN_MESSAGES(PpapiHost) |
141 // Reply to PpapiMsg_LoadPlugin. | 162 // Reply to PpapiMsg_LoadPlugin. |
142 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, | 163 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, |
143 IPC::ChannelHandle /* handle */) | 164 IPC::ChannelHandle /* handle */) |
144 | 165 |
166 // PPB_Audio. | |
167 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create, | |
168 PP_Instance /* instance_id */, | |
169 PP_Resource /* config_id */, | |
170 PP_Resource /* result */) | |
171 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, | |
172 PP_Resource /* audio_id */, | |
173 bool /* play */) | |
174 | |
175 // PPB_AudioConfig. | |
176 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create, | |
177 PP_Module /* module */, | |
178 int32_t /* sample_rate */, | |
179 uint32_t /* sample_frame_count */, | |
180 PP_Resource /* result */) | |
181 IPC_SYNC_MESSAGE_ROUTED1_1( | |
182 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount, | |
183 uint32_t /* requested */, | |
184 uint32_t /* result */) | |
185 | |
145 // PPB_Buffer. | 186 // PPB_Buffer. |
146 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, | 187 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
147 PP_Module /* module */, | 188 PP_Module /* module */, |
148 int32_t /* size */, | 189 int32_t /* size */, |
149 PP_Resource /* result_resource */, | 190 PP_Resource /* result_resource */, |
150 uint64_t /* result_shm_handle */) | 191 uint64_t /* result_shm_handle */) |
151 | 192 |
152 // PPB_Core. | 193 // PPB_Core. |
153 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource) | 194 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource) |
154 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, PP_Resource) | 195 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, PP_Resource) |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
485 int64 /* object-data */, | 526 int64 /* object-data */, |
486 PP_Bool /* result */) | 527 PP_Bool /* result */) |
487 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, | 528 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
488 PP_Module /* module */, | 529 PP_Module /* module */, |
489 int64 /* object_class */, | 530 int64 /* object_class */, |
490 int64 /* object_data */, | 531 int64 /* object_data */, |
491 pp::proxy::SerializedVar /* result */) | 532 pp::proxy::SerializedVar /* result */) |
492 | 533 |
493 IPC_END_MESSAGES(PpapiHost) | 534 IPC_END_MESSAGES(PpapiHost) |
494 | 535 |
OLD | NEW |