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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 ppapi::HostResource /* loader */, | 552 ppapi::HostResource /* loader */, |
553 int32_t /* result */) | 553 int32_t /* result */) |
554 #if !defined(OS_NACL) | 554 #if !defined(OS_NACL) |
555 // PPB_Broker. | 555 // PPB_Broker. |
556 IPC_MESSAGE_ROUTED3( | 556 IPC_MESSAGE_ROUTED3( |
557 PpapiMsg_PPBBroker_ConnectComplete, | 557 PpapiMsg_PPBBroker_ConnectComplete, |
558 ppapi::HostResource /* broker */, | 558 ppapi::HostResource /* broker */, |
559 IPC::PlatformFileForTransit /* handle */, | 559 IPC::PlatformFileForTransit /* handle */, |
560 int32_t /* result */) | 560 int32_t /* result */) |
561 | 561 |
562 // PPB_FileChooser. | |
563 IPC_MESSAGE_ROUTED3( | |
564 PpapiMsg_PPBFileChooser_ChooseComplete, | |
565 ppapi::HostResource /* chooser */, | |
566 int32_t /* result_code (will be != PP_OK on failure */, | |
567 std::vector<ppapi::PPB_FileRef_CreateInfo> /* chosen_files */) | |
568 | |
569 // PPB_NetworkMonitor_Private. | 562 // PPB_NetworkMonitor_Private. |
570 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, | 563 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, |
571 uint32 /* plugin_dispatcher_id */, | 564 uint32 /* plugin_dispatcher_id */, |
572 ppapi::NetworkList /* network_list */) | 565 ppapi::NetworkList /* network_list */) |
573 | 566 |
574 // PPB_Talk | 567 // PPB_Talk |
575 IPC_MESSAGE_ROUTED3( | 568 IPC_MESSAGE_ROUTED3( |
576 PpapiMsg_PPBTalk_GetPermissionACK, | 569 PpapiMsg_PPBTalk_GetPermissionACK, |
577 uint32 /* plugin_dispatcher_id */, | 570 uint32 /* plugin_dispatcher_id */, |
578 PP_Resource /* resource */, | 571 PP_Resource /* resource */, |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, | 1107 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, |
1115 ppapi::HostResource /* broker */) | 1108 ppapi::HostResource /* broker */) |
1116 | 1109 |
1117 // PPB_Buffer. | 1110 // PPB_Buffer. |
1118 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, | 1111 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
1119 PP_Instance /* instance */, | 1112 PP_Instance /* instance */, |
1120 uint32_t /* size */, | 1113 uint32_t /* size */, |
1121 ppapi::HostResource /* result_resource */, | 1114 ppapi::HostResource /* result_resource */, |
1122 base::SharedMemoryHandle /* result_shm_handle */) | 1115 base::SharedMemoryHandle /* result_shm_handle */) |
1123 | 1116 |
1124 // PPB_FileChooser. | |
1125 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileChooser_Create, | |
1126 PP_Instance /* instance */, | |
1127 int /* mode */, | |
1128 std::string /* accept_types */, | |
1129 ppapi::HostResource /* result */) | |
1130 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileChooser_Show, | |
1131 ppapi::HostResource /* file_chooser */, | |
1132 PP_Bool /* save_as */, | |
1133 ppapi::proxy::SerializedVar /* suggested_file_name */, | |
1134 bool /* require_user_gesture */) | |
1135 | |
1136 // PPB_NetworkMonitor_Private. | 1117 // PPB_NetworkMonitor_Private. |
1137 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, | 1118 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, |
1138 uint32 /* plugin_dispatcher_id */) | 1119 uint32 /* plugin_dispatcher_id */) |
1139 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, | 1120 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, |
1140 uint32 /* plugin_dispatcher_id */) | 1121 uint32 /* plugin_dispatcher_id */) |
1141 | 1122 |
1142 // PPB_HostResolver_Private. | 1123 // PPB_HostResolver_Private. |
1143 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, | 1124 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, |
1144 int32 /* routing_id */, | 1125 int32 /* routing_id */, |
1145 uint32 /* plugin_dispatcher_id */, | 1126 uint32 /* plugin_dispatcher_id */, |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 ppapi::proxy::ResourceMessageCallParams /* call_params */, | 1414 ppapi::proxy::ResourceMessageCallParams /* call_params */, |
1434 IPC::Message /* nested_msg */) | 1415 IPC::Message /* nested_msg */) |
1435 | 1416 |
1436 // A resource reply is a response to a ResourceCall from a host to the | 1417 // A resource reply is a response to a ResourceCall from a host to the |
1437 // plugin. The resource ID + sequence number in the params will correspond to | 1418 // plugin. The resource ID + sequence number in the params will correspond to |
1438 // that of the previous ResourceCall. | 1419 // that of the previous ResourceCall. |
1439 IPC_MESSAGE_CONTROL2( | 1420 IPC_MESSAGE_CONTROL2( |
1440 PpapiPluginMsg_ResourceReply, | 1421 PpapiPluginMsg_ResourceReply, |
1441 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, | 1422 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, |
1442 IPC::Message /* nested_msg */) | 1423 IPC::Message /* nested_msg */) |
| 1424 |
| 1425 //----------------------------------------------------------------------------- |
| 1426 // Messages for resources using call/reply above. |
| 1427 |
| 1428 // File chooser. |
| 1429 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1430 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1431 bool /* save_as */, |
| 1432 bool /* open_multiple */, |
| 1433 std::string /* suggested_file_name */, |
| 1434 std::vector<std::string> /* accept_mime_types */) |
| 1435 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1436 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
OLD | NEW |