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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 // message will be resource-type-specific. | 1408 // message will be resource-type-specific. |
1409 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated, | 1409 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated, |
1410 ppapi::proxy::ResourceMessageCallParams /* call_params */, | 1410 ppapi::proxy::ResourceMessageCallParams /* call_params */, |
1411 PP_Instance /* instance */, | 1411 PP_Instance /* instance */, |
1412 IPC::Message /* nested_msg */) | 1412 IPC::Message /* nested_msg */) |
1413 | 1413 |
1414 // Notification that a resource has been destroyed in the plugin. | 1414 // Notification that a resource has been destroyed in the plugin. |
1415 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, | 1415 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, |
1416 PP_Resource /* resource */) | 1416 PP_Resource /* resource */) |
1417 | 1417 |
| 1418 // Most resources are created by the plugin, which then sends a ResourceCreated |
| 1419 // message to create a corresponding ResourceHost in the renderer or browser |
| 1420 // host process. However, some resources are first created in the host and |
| 1421 // "pushed" or returned to the plugin. |
| 1422 // |
| 1423 // In this case, the host will create a "pending" ResourceHost object which |
| 1424 // is identified by an ID. The ID is sent to the plugin process and the |
| 1425 // PluginResource object is created. This message is sent from the plugin to |
| 1426 // the host process to connect the PluginResource and the pending ResourceHost |
| 1427 // (at which point, it's no longer pending). |
| 1428 IPC_MESSAGE_CONTROL2(PpapiHostMsg_AttachToPendingHost, |
| 1429 PP_Resource /* resource */, |
| 1430 int /* pending_host_id */) |
| 1431 |
1418 // A resource call is a request from the plugin to the host. It may or may not | 1432 // A resource call is a request from the plugin to the host. It may or may not |
1419 // require a reply, depending on the params. The nested message will be | 1433 // require a reply, depending on the params. The nested message will be |
1420 // resource-type-specific. | 1434 // resource-type-specific. |
1421 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, | 1435 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, |
1422 ppapi::proxy::ResourceMessageCallParams /* call_params */, | 1436 ppapi::proxy::ResourceMessageCallParams /* call_params */, |
1423 IPC::Message /* nested_msg */) | 1437 IPC::Message /* nested_msg */) |
1424 | 1438 |
1425 // A resource reply is a response to a ResourceCall from a host to the | 1439 // A resource reply is a response to a ResourceCall from a host to the |
1426 // plugin. The resource ID + sequence number in the params will correspond to | 1440 // plugin. The resource ID + sequence number in the params will correspond to |
1427 // that of the previous ResourceCall. | 1441 // that of the previous ResourceCall. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 std::vector<ppapi::HostResource> /* buffers */, | 1698 std::vector<ppapi::HostResource> /* buffers */, |
1685 uint32_t /* buffer_size */) | 1699 uint32_t /* buffer_size */) |
1686 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1700 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1687 uint32_t /* status */) | 1701 uint32_t /* status */) |
1688 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1702 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1689 uint32_t /* error */) | 1703 uint32_t /* error */) |
1690 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1704 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1691 uint32_t /* buffer */) | 1705 uint32_t /* buffer */) |
1692 | 1706 |
1693 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1707 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |