Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: ppapi/proxy/ppapi_messages_internal.h

Issue 6486034: Share PPAPI out-of-process plugins between renderer processes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "gpu/command_buffer/common/command_buffer.h" 5 #include "gpu/command_buffer/common/command_buffer.h"
6 #include "gpu/ipc/gpu_command_buffer_traits.h" 6 #include "gpu/ipc/gpu_command_buffer_traits.h"
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "ppapi/c/dev/pp_file_info_dev.h" 8 #include "ppapi/c/dev/pp_file_info_dev.h"
9 #include "ppapi/c/ppb_var.h" 9 #include "ppapi/c/ppb_var.h"
10 10
11 #define IPC_MESSAGE_START PpapiMsgStart 11 #define IPC_MESSAGE_START PpapiMsgStart
12 12
13 // These are from the plugin to the renderer 13 // These are from the plugin to the renderer
14 // Loads the given plugin. 14 // Loads the given plugin.
15 IPC_MESSAGE_CONTROL3(PpapiMsg_LoadPlugin, 15 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
16
17 // Creates a channel to talk to a renderer. The plugin will respond with
18 // PpapiHostMsg_ChannelCreated.
19 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
16 base::ProcessHandle /* host_process_handle */, 20 base::ProcessHandle /* host_process_handle */,
17 FilePath /* path */, 21 int /* renderer_id */);
18 int /* renderer_id */)
19
20 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_InitializeModule,
21 PP_Module /* module_id */,
22 bool /* result */)
23
24 IPC_MESSAGE_CONTROL0(PpapiMsg_Shutdown)
25 22
26 // Sent in both directions to see if the other side supports the given 23 // Sent in both directions to see if the other side supports the given
27 // interface. 24 // interface.
28 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface, 25 IPC_SYNC_MESSAGE_CONTROL1_1(PpapiMsg_SupportsInterface,
29 std::string /* interface_name */, 26 std::string /* interface_name */,
30 bool /* result */) 27 bool /* result */)
31 28
32 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback, 29 IPC_MESSAGE_CONTROL2(PpapiMsg_ExecuteCallback,
33 uint32 /* serialized_callback */, 30 uint32 /* serialized_callback */,
34 int32 /* param */) 31 int32 /* param */)
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // (Messages from browser to plugin to notify it of changes in state.) 142 // (Messages from browser to plugin to notify it of changes in state.)
146 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress, 143 IPC_MESSAGE_ROUTED1(PpapiMsg_PPBURLLoader_UpdateProgress,
147 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */) 144 pp::proxy::PPBURLLoader_UpdateProgress_Params /* params */)
148 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack, 145 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBURLLoader_ReadResponseBody_Ack,
149 pp::proxy::HostResource /* loader */, 146 pp::proxy::HostResource /* loader */,
150 int32 /* result */, 147 int32 /* result */,
151 std::string /* data */) 148 std::string /* data */)
152 149
153 // ----------------------------------------------------------------------------- 150 // -----------------------------------------------------------------------------
154 // These are from the plugin to the renderer. 151 // These are from the plugin to the renderer.
155 // Reply to PpapiMsg_LoadPlugin. 152
156 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PluginLoaded, 153 // Reply to PpapiMsg_CreateChannel. The handle will be NULL if the channel
154 // could not be established. This could be because the IPC could not be created
155 // for some weird reason, but more likely that the plugin failed to load or
156 // initialize properly.
157 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ChannelCreated,
157 IPC::ChannelHandle /* handle */) 158 IPC::ChannelHandle /* handle */)
158 159
159 // PPB_Audio. 160 // PPB_Audio.
160 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create, 161 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBAudio_Create,
161 PP_Instance /* instance_id */, 162 PP_Instance /* instance_id */,
162 pp::proxy::HostResource /* config_id */, 163 pp::proxy::HostResource /* config_id */,
163 pp::proxy::HostResource /* result */) 164 pp::proxy::HostResource /* result */)
164 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 165 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
165 pp::proxy::HostResource /* audio_id */, 166 pp::proxy::HostResource /* audio_id */,
166 bool /* play */) 167 bool /* play */)
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, 579 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated,
579 pp::proxy::SerializedVar /* var */, 580 pp::proxy::SerializedVar /* var */,
580 int64 /* object_class */, 581 int64 /* object_class */,
581 int64 /* object-data */, 582 int64 /* object-data */,
582 PP_Bool /* result */) 583 PP_Bool /* result */)
583 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, 584 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
584 PP_Instance /* instance */, 585 PP_Instance /* instance */,
585 int64 /* object_class */, 586 int64 /* object_class */,
586 int64 /* object_data */, 587 int64 /* object_data */,
587 pp::proxy::SerializedVar /* result */) 588 pp::proxy::SerializedVar /* result */)
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698