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 // 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 Loading... |
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 Loading... |
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 */) |
OLD | NEW |