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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // Creates a channel to talk to a renderer. This message is only used by the | 307 // Creates a channel to talk to a renderer. This message is only used by the |
308 // NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the | 308 // NaCl IPC proxy. It is intercepted by NaClIPCAdapter, which creates the |
309 // actual channel and rewrites the message for the untrusted side. | 309 // actual channel and rewrites the message for the untrusted side. |
310 IPC_MESSAGE_CONTROL4(PpapiMsg_CreateNaClChannel, | 310 IPC_MESSAGE_CONTROL4(PpapiMsg_CreateNaClChannel, |
311 int /* renderer_id */, | 311 int /* renderer_id */, |
312 ppapi::PpapiPermissions /* permissions */, | 312 ppapi::PpapiPermissions /* permissions */, |
313 bool /* incognito */, | 313 bool /* incognito */, |
314 ppapi::proxy::SerializedHandle /* channel_handle */) | 314 ppapi::proxy::SerializedHandle /* channel_handle */) |
315 | 315 |
| 316 // Instructs the plugin process to crash. |
| 317 IPC_MESSAGE_CONTROL0(PpapiMsg_Crash) |
| 318 |
| 319 // Instructs the plugin process to hang. |
| 320 IPC_MESSAGE_CONTROL0(PpapiMsg_Hang) |
| 321 |
316 // Each plugin may be referenced by multiple renderers. We need the instance | 322 // Each plugin may be referenced by multiple renderers. We need the instance |
317 // IDs to be unique within a plugin, despite coming from different renderers, | 323 // IDs to be unique within a plugin, despite coming from different renderers, |
318 // and unique within a renderer, despite going to different plugins. This means | 324 // and unique within a renderer, despite going to different plugins. This means |
319 // that neither the renderer nor the plugin can generate instance IDs without | 325 // that neither the renderer nor the plugin can generate instance IDs without |
320 // consulting the other. | 326 // consulting the other. |
321 // | 327 // |
322 // We resolve this by having the renderer generate a unique instance ID inside | 328 // We resolve this by having the renderer generate a unique instance ID inside |
323 // its process. It then asks the plugin to reserve that ID by sending this sync | 329 // its process. It then asks the plugin to reserve that ID by sending this sync |
324 // message. If the plugin has not yet seen this ID, it will remember it as used | 330 // message. If the plugin has not yet seen this ID, it will remember it as used |
325 // (to prevent a race condition if another renderer tries to then use the same | 331 // (to prevent a race condition if another renderer tries to then use the same |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 std::vector<ppapi::HostResource> /* buffers */, | 1738 std::vector<ppapi::HostResource> /* buffers */, |
1733 uint32_t /* buffer_size */) | 1739 uint32_t /* buffer_size */) |
1734 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1740 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1735 uint32_t /* status */) | 1741 uint32_t /* status */) |
1736 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1742 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1737 uint32_t /* error */) | 1743 uint32_t /* error */) |
1738 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1744 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1739 uint32_t /* buffer */) | 1745 uint32_t /* buffer */) |
1740 | 1746 |
1741 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1747 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |