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

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

Issue 10572040: Create a PPAPI host for new resource message routing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 19 matching lines...) Expand all
30 #include "ppapi/c/pp_rect.h" 30 #include "ppapi/c/pp_rect.h"
31 #include "ppapi/c/pp_resource.h" 31 #include "ppapi/c/pp_resource.h"
32 #include "ppapi/c/pp_size.h" 32 #include "ppapi/c/pp_size.h"
33 #include "ppapi/c/pp_time.h" 33 #include "ppapi/c/pp_time.h"
34 #include "ppapi/c/private/ppb_host_resolver_private.h" 34 #include "ppapi/c/private/ppb_host_resolver_private.h"
35 #include "ppapi/c/private/ppb_net_address_private.h" 35 #include "ppapi/c/private/ppb_net_address_private.h"
36 #include "ppapi/c/private/ppb_tcp_socket_private.h" 36 #include "ppapi/c/private/ppb_tcp_socket_private.h"
37 #include "ppapi/c/private/ppp_flash_browser_operations.h" 37 #include "ppapi/c/private/ppp_flash_browser_operations.h"
38 #include "ppapi/proxy/ppapi_param_traits.h" 38 #include "ppapi/proxy/ppapi_param_traits.h"
39 #include "ppapi/proxy/ppapi_proxy_export.h" 39 #include "ppapi/proxy/ppapi_proxy_export.h"
40 #include "ppapi/proxy/resource_message_params.h"
40 #include "ppapi/proxy/serialized_flash_menu.h" 41 #include "ppapi/proxy/serialized_flash_menu.h"
41 #include "ppapi/proxy/serialized_structs.h" 42 #include "ppapi/proxy/serialized_structs.h"
42 #include "ppapi/shared_impl/ppapi_preferences.h" 43 #include "ppapi/shared_impl/ppapi_preferences.h"
43 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 44 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
44 #include "ppapi/shared_impl/ppb_input_event_shared.h" 45 #include "ppapi/shared_impl/ppb_input_event_shared.h"
45 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" 46 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
46 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" 47 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
47 #include "ppapi/shared_impl/ppb_view_shared.h" 48 #include "ppapi/shared_impl/ppb_view_shared.h"
48 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 49 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
49 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" 50 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1379
1379 // PPB_X509Certificate_Private 1380 // PPB_X509Certificate_Private
1380 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, 1381 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1381 std::vector<char> /* der */, 1382 std::vector<char> /* der */,
1382 bool /* succeeded */, 1383 bool /* succeeded */,
1383 ppapi::PPB_X509Certificate_Fields /* result */) 1384 ppapi::PPB_X509Certificate_Fields /* result */)
1384 1385
1385 // PPB_Font. 1386 // PPB_Font.
1386 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1387 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1387 std::string /* result */) 1388 std::string /* result */)
1389
1388 #endif // !defined(OS_NACL) 1390 #endif // !defined(OS_NACL)
1391
1392 //-----------------------------------------------------------------------------
1393 // Resource call/reply messages.
1394 //
1395 // These are the new-style resource implementations where the resource is only
1396 // implemented in the proxy and "resource messages" are sent between this and a
1397 // host object. Resource messages are a wrapper around some general routing
1398 // information and a separate message of a type defined by the specific resource
1399 // sending/receiving it. The extra paremeters allow the nested message to be
1400 // routed automatically to the correct resource.
1401
1402 // Notification that a resource has been created in the plugin. The nested
1403 // message will be resource-type-specific.
1404 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1405 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1406 PP_Instance /* instance */,
1407 IPC::Message /* nested_msg */)
1408
1409 // Notification that a resource has been destroyed in the plugin.
1410 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1411 PP_Resource /* resource */)
1412
1413 // A resource call is a request from the plugin to the host. It may or may not
1414 // require a reply, depending on the params. The nested message will be
1415 // resource-type-specific.
1416 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1417 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1418 IPC::Message /* nested_msg */)
1419
1420 // A resource reply is a response to a ResourceCall from a host to the
1421 // plugin. The resource ID + sequence number in the params will correspond to
1422 // that of the previous ResourceCall.
1423 IPC_MESSAGE_CONTROL2(
1424 PpapiPluginMsg_ResourceReply,
1425 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1426 IPC::Message /* nested_msg */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698