| 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 close all of the handles passed |
| 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 IPC::PlatformFileForTransit /* socket_handle */, |
| 53 base::SharedMemoryHandle /* handle */, |
| 54 int32_t /* length */) |
| 55 |
| 56 // PPB_Graphics2D. |
| 57 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
| 58 PP_Resource /* graphics_2d */, |
| 59 int32_t /* pp_error */) |
| 60 |
| 39 // PPP_Class. | 61 // PPP_Class. |
| 40 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, | 62 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
| 41 int64 /* ppp_class */, | 63 int64 /* ppp_class */, |
| 42 int64 /* object */, | 64 int64 /* object */, |
| 43 pp::proxy::SerializedVar /* property */, | 65 pp::proxy::SerializedVar /* property */, |
| 44 pp::proxy::SerializedVar /* out_exception */, | 66 pp::proxy::SerializedVar /* out_exception */, |
| 45 bool /* result */) | 67 bool /* result */) |
| 46 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, | 68 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
| 47 int64 /* ppp_class */, | 69 int64 /* ppp_class */, |
| 48 int64 /* object */, | 70 int64 /* object */, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, | 103 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_Construct, |
| 82 int64 /* ppp_class */, | 104 int64 /* ppp_class */, |
| 83 int64 /* object */, | 105 int64 /* object */, |
| 84 std::vector<pp::proxy::SerializedVar> /* args */, | 106 std::vector<pp::proxy::SerializedVar> /* args */, |
| 85 pp::proxy::SerializedVar /* out_exception */, | 107 pp::proxy::SerializedVar /* out_exception */, |
| 86 pp::proxy::SerializedVar /* result */) | 108 pp::proxy::SerializedVar /* result */) |
| 87 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, | 109 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPClass_Deallocate, |
| 88 int64 /* ppp_class */, | 110 int64 /* ppp_class */, |
| 89 int64 /* object */) | 111 int64 /* object */) |
| 90 | 112 |
| 91 // PPB_Graphics2D. | |
| 92 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | |
| 93 PP_Resource /* graphics_2d */, | |
| 94 int32_t /* pp_error */) | |
| 95 | |
| 96 // PPP_Instance. | 113 // PPP_Instance. |
| 97 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, | 114 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
| 98 PP_Instance /* instance */, | 115 PP_Instance /* instance */, |
| 99 std::vector<std::string> /* argn */, | 116 std::vector<std::string> /* argn */, |
| 100 std::vector<std::string> /* argv */, | 117 std::vector<std::string> /* argv */, |
| 101 PP_Bool /* result */) | 118 PP_Bool /* result */) |
| 102 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, | 119 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, |
| 103 PP_Instance /* instance */) | 120 PP_Instance /* instance */) |
| 104 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, | 121 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, |
| 105 PP_Instance /* instance */, | 122 PP_Instance /* instance */, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 135 std::string /* data */) | 152 std::string /* data */) |
| 136 IPC_END_MESSAGES(Ppapi) | 153 IPC_END_MESSAGES(Ppapi) |
| 137 | 154 |
| 138 // ----------------------------------------------------------------------------- | 155 // ----------------------------------------------------------------------------- |
| 139 // These are from the plugin to the renderer. | 156 // These are from the plugin to the renderer. |
| 140 IPC_BEGIN_MESSAGES(PpapiHost) | 157 IPC_BEGIN_MESSAGES(PpapiHost) |
| 141 // Reply to PpapiMsg_LoadPlugin. | 158 // Reply to PpapiMsg_LoadPlugin. |
| 142 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, | 159 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, |
| 143 IPC::ChannelHandle /* handle */) | 160 IPC::ChannelHandle /* handle */) |
| 144 | 161 |
| 162 // PPB_Audio. |
| 163 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create, |
| 164 PP_Instance /* instance_id */, |
| 165 PP_Resource /* config_id */, |
| 166 PP_Resource /* result */) |
| 167 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, |
| 168 PP_Resource /* audio_id */, |
| 169 bool /* play */) |
| 170 |
| 171 // PPB_AudioConfig. |
| 172 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBAudioConfig_Create, |
| 173 PP_Module /* module */, |
| 174 int32_t /* sample_rate */, |
| 175 uint32_t /* sample_frame_count */, |
| 176 PP_Resource /* result */) |
| 177 IPC_SYNC_MESSAGE_ROUTED1_1( |
| 178 PpapiHostMsg_PPBAudioConfig_RecommendSampleFrameCount, |
| 179 uint32_t /* requested */, |
| 180 uint32_t /* result */) |
| 181 |
| 145 // PPB_Buffer. | 182 // PPB_Buffer. |
| 146 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, | 183 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
| 147 PP_Module /* module */, | 184 PP_Module /* module */, |
| 148 int32_t /* size */, | 185 int32_t /* size */, |
| 149 PP_Resource /* result_resource */, | 186 PP_Resource /* result_resource */, |
| 150 uint64_t /* result_shm_handle */) | 187 uint64_t /* result_shm_handle */) |
| 151 | 188 |
| 152 // PPB_Core. | 189 // PPB_Core. |
| 153 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource) | 190 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, PP_Resource) |
| 154 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, PP_Resource) | 191 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 */, | 522 int64 /* object-data */, |
| 486 PP_Bool /* result */) | 523 PP_Bool /* result */) |
| 487 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, | 524 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 488 PP_Module /* module */, | 525 PP_Module /* module */, |
| 489 int64 /* object_class */, | 526 int64 /* object_class */, |
| 490 int64 /* object_data */, | 527 int64 /* object_data */, |
| 491 pp::proxy::SerializedVar /* result */) | 528 pp::proxy::SerializedVar /* result */) |
| 492 | 529 |
| 493 IPC_END_MESSAGES(PpapiHost) | 530 IPC_END_MESSAGES(PpapiHost) |
| 494 | 531 |
| OLD | NEW |