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

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

Issue 10912011: Change NaCl IPC PPAPI proxy startup to support a NaCl-Browser process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_main_nacl.cc ('k') | ppapi/proxy/ppapi_param_traits.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) 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 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // These are from the browser to the plugin. 259 // These are from the browser to the plugin.
260 // Loads the given plugin. 260 // Loads the given plugin.
261 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) 261 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
262 262
263 // Creates a channel to talk to a renderer. The plugin will respond with 263 // Creates a channel to talk to a renderer. The plugin will respond with
264 // PpapiHostMsg_ChannelCreated. 264 // PpapiHostMsg_ChannelCreated.
265 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, 265 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
266 int /* renderer_id */, 266 int /* renderer_id */,
267 bool /* incognito */) 267 bool /* incognito */)
268 268
269 // Creates a channel to talk to a renderer. This message is only used by the
270 // NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the
271 // actual channel and rewrites the message for the untrusted side.
272 IPC_MESSAGE_CONTROL3(PpapiMsg_CreateNaClChannel,
273 int /* renderer_id */,
274 bool /* incognito */,
275 ppapi::proxy::SerializedHandle /* channel_handle */)
276
269 // Each plugin may be referenced by multiple renderers. We need the instance 277 // Each plugin may be referenced by multiple renderers. We need the instance
270 // IDs to be unique within a plugin, despite coming from different renderers, 278 // IDs to be unique within a plugin, despite coming from different renderers,
271 // and unique within a renderer, despite going to different plugins. This means 279 // and unique within a renderer, despite going to different plugins. This means
272 // that neither the renderer nor the plugin can generate instance IDs without 280 // that neither the renderer nor the plugin can generate instance IDs without
273 // consulting the other. 281 // consulting the other.
274 // 282 //
275 // We resolve this by having the renderer generate a unique instance ID inside 283 // We resolve this by having the renderer generate a unique instance ID inside
276 // its process. It then asks the plugin to reserve that ID by sending this sync 284 // its process. It then asks the plugin to reserve that ID by sending this sync
277 // message. If the plugin has not yet seen this ID, it will remember it as used 285 // message. If the plugin has not yet seen this ID, it will remember it as used
278 // (to prevent a race condition if another renderer tries to then use the same 286 // (to prevent a race condition if another renderer tries to then use the same
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 std::string /* suggested_file_name */, 1535 std::string /* suggested_file_name */,
1528 std::vector<std::string> /* accept_mime_types */) 1536 std::vector<std::string> /* accept_mime_types */)
1529 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1537 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1530 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) 1538 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
1531 1539
1532 // Gamepad. 1540 // Gamepad.
1533 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) 1541 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1534 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) 1542 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
1535 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Gamepad_SendMemory, 1543 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Gamepad_SendMemory,
1536 base::SharedMemoryHandle /* handle */) 1544 base::SharedMemoryHandle /* handle */)
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_main_nacl.cc ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698