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

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

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

Powered by Google App Engine
This is Rietveld 408576698