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

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

Issue 10560030: Add resource message call and reply infrastructure. (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 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 1378
1378 // PPB_X509Certificate_Private 1379 // PPB_X509Certificate_Private
1379 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, 1380 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1380 std::vector<char> /* der */, 1381 std::vector<char> /* der */,
1381 bool /* succeeded */, 1382 bool /* succeeded */,
1382 ppapi::PPB_X509Certificate_Fields /* result */) 1383 ppapi::PPB_X509Certificate_Fields /* result */)
1383 1384
1384 // PPB_Font. 1385 // PPB_Font.
1385 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1386 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1386 std::string /* result */) 1387 std::string /* result */)
1388
1387 #endif // !defined(OS_NACL) 1389 #endif // !defined(OS_NACL)
1390
1391 //-----------------------------------------------------------------------------
1392 // Resource call/reply messages.
1393 //
1394 // These are the new-style resource implementations where the resource is only
1395 // implemented in the proxy and "resource messages" are sent between this and a
1396 // host object.
bbudge 2012/06/19 20:40:31 Maybe a little explanation about 'nesting'? Which
1397
1398 // Notification that a resource has been created in the plugin. The nested
1399 // message will be resource-type-specific.
1400 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated,
1401 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1402 PP_Instance /* instance */,
1403 IPC::Message /* nested_msg */)
1404
1405 // Notification that a resource has been destroyed in the plugin.
1406 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed,
1407 PP_Resource /* resource */)
1408
1409 // A resource call is a request from the plugin to the host. It may or may not
1410 // require a reply, depending on the params. The nested message will be
1411 // resource-type-specific.
1412 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall,
1413 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1414 IPC::Message /* nested_msg */)
1415
1416 // A resource reply is a response to a ResourceCall from a host to the
1417 // plugin. The resource ID + sequence number in the params will correspond to
1418 // that of the previous ResourceCall.
1419 IPC_MESSAGE_CONTROL2(
1420 PpapiPluginMsg_ResourceReply,
1421 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1422 IPC::Message /* nested_msg */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698