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 19 matching lines...) Expand all Loading... | |
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 Loading... | |
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 // New-style resource call/reply messages. | |
bbudge
2012/06/18 17:23:47
A more informative comment about the idea of resou
| |
1393 | |
1394 // Notification that the a resource has been created in the plugin. The nested | |
bbudge
2012/06/18 17:23:47
s/the a/a/
| |
1395 // message will be resource-type-specific. | |
1396 IPC_MESSAGE_CONTROL3(PpapiHostMsg_ResourceCreated, | |
1397 ppapi::proxy::ResourceMessageCallParams /* call_params */, | |
1398 PP_Instance /* instance */, | |
1399 IPC::Message /* nested_msg */) | |
1400 | |
1401 // Notificaition that a resource has been destroyed in the plugin. | |
bbudge
2012/06/18 17:23:47
sp. Notification
| |
1402 IPC_MESSAGE_CONTROL1(PpapiHostMsg_ResourceDestroyed, | |
1403 PP_Resource /* resource */) | |
1404 | |
1405 // A resource call is a request from the plugin to the host. It may or may not | |
1406 // require a reply, depending on the params. The nested message will be | |
1407 // resource-type-specific. | |
1408 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ResourceCall, | |
1409 ppapi::proxy::ResourceMessageCallParams /* call_params */, | |
1410 IPC::Message /* nested_msg */) | |
1411 | |
1412 // A resource reply is a response from a ResourceCall from a host to the | |
bbudge
2012/06/18 17:23:47
s/response from/response to
| |
1413 // plugin. The resource ID + sequence number in the params will correspond to | |
1414 // that of a previous ResourceCall. | |
bbudge
2012/06/18 17:23:47
A "previous" ResourceCall or the one that this is
| |
1415 IPC_MESSAGE_CONTROL2( | |
1416 PpapiPluginMsg_ResourceReply, | |
1417 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, | |
1418 IPC::Message /* nested_msg */) | |
OLD | NEW |