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" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
15 #include "gpu/command_buffer/common/command_buffer.h" | 15 #include "gpu/command_buffer/common/command_buffer.h" |
16 #include "gpu/ipc/gpu_command_buffer_traits.h" | 16 #include "gpu/ipc/gpu_command_buffer_traits.h" |
17 #include "ipc/ipc_channel_handle.h" | 17 #include "ipc/ipc_channel_handle.h" |
18 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
19 #include "ipc/ipc_message_utils.h" | 19 #include "ipc/ipc_message_utils.h" |
20 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
21 #include "ppapi/c/dev/pp_video_capture_dev.h" | 21 #include "ppapi/c/dev/pp_video_capture_dev.h" |
22 #include "ppapi/c/dev/pp_video_dev.h" | 22 #include "ppapi/c/dev/pp_video_dev.h" |
23 #include "ppapi/c/dev/ppb_directory_reader_dev.h" | |
23 #include "ppapi/c/dev/ppb_text_input_dev.h" | 24 #include "ppapi/c/dev/ppb_text_input_dev.h" |
24 #include "ppapi/c/dev/ppb_url_util_dev.h" | 25 #include "ppapi/c/dev/ppb_url_util_dev.h" |
25 #include "ppapi/c/dev/ppp_printing_dev.h" | 26 #include "ppapi/c/dev/ppp_printing_dev.h" |
26 #include "ppapi/c/pp_bool.h" | 27 #include "ppapi/c/pp_bool.h" |
27 #include "ppapi/c/pp_file_info.h" | 28 #include "ppapi/c/pp_file_info.h" |
28 #include "ppapi/c/pp_instance.h" | 29 #include "ppapi/c/pp_instance.h" |
29 #include "ppapi/c/pp_module.h" | 30 #include "ppapi/c/pp_module.h" |
30 #include "ppapi/c/pp_point.h" | 31 #include "ppapi/c/pp_point.h" |
31 #include "ppapi/c/pp_rect.h" | 32 #include "ppapi/c/pp_rect.h" |
32 #include "ppapi/c/pp_resource.h" | 33 #include "ppapi/c/pp_resource.h" |
(...skipping 29 matching lines...) Expand all Loading... | |
62 #include "ppapi/shared_impl/url_response_info_data.h" | 63 #include "ppapi/shared_impl/url_response_info_data.h" |
63 | 64 |
64 #undef IPC_MESSAGE_EXPORT | 65 #undef IPC_MESSAGE_EXPORT |
65 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT | 66 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT |
66 | 67 |
67 #define IPC_MESSAGE_START PpapiMsgStart | 68 #define IPC_MESSAGE_START PpapiMsgStart |
68 | 69 |
69 IPC_ENUM_TRAITS(PP_AudioSampleRate) | 70 IPC_ENUM_TRAITS(PP_AudioSampleRate) |
70 IPC_ENUM_TRAITS(PP_DeviceType_Dev) | 71 IPC_ENUM_TRAITS(PP_DeviceType_Dev) |
71 IPC_ENUM_TRAITS(PP_DecryptorStreamType) | 72 IPC_ENUM_TRAITS(PP_DecryptorStreamType) |
73 IPC_ENUM_TRAITS(PP_FileType) | |
72 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) | 74 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) |
73 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) | 75 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) |
74 IPC_ENUM_TRAITS(PP_FlashSetting) | 76 IPC_ENUM_TRAITS(PP_FlashSetting) |
75 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) | 77 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) |
76 IPC_ENUM_TRAITS(PP_InputEvent_Type) | 78 IPC_ENUM_TRAITS(PP_InputEvent_Type) |
77 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) | 79 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) |
78 IPC_ENUM_TRAITS(PP_NetworkListState_Private) | 80 IPC_ENUM_TRAITS(PP_NetworkListState_Private) |
79 IPC_ENUM_TRAITS(PP_NetworkListType_Private) | 81 IPC_ENUM_TRAITS(PP_NetworkListType_Private) |
80 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) | 82 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) |
81 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) | 83 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) |
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1383 // Messages for resources using call/reply above. | 1385 // Messages for resources using call/reply above. |
1384 | 1386 |
1385 // Broker ---------------------------------------------------------------------- | 1387 // Broker ---------------------------------------------------------------------- |
1386 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) | 1388 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) |
1387 | 1389 |
1388 // Queries whether the plugin has permission to connect to the Pepper broker. | 1390 // Queries whether the plugin has permission to connect to the Pepper broker. |
1389 // The response is contained in the error value of the | 1391 // The response is contained in the error value of the |
1390 // ResourceMessageReplyParams in the reply message. | 1392 // ResourceMessageReplyParams in the reply message. |
1391 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) | 1393 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) |
1392 | 1394 |
1395 // Directory reader. | |
1396 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DirectoryReader_Create) | |
1397 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DirectoryReader_GetNextEntry, | |
1398 ppapi::HostResource /* file_ref_resource */) | |
yzshen1
2013/01/24 21:55:43
Now that the implementation at the host side gets
| |
1399 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DirectoryReader_GetNextEntryReply, | |
1400 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */, | |
1401 std::vector<PP_FileType> /* file_types */) | |
1402 | |
1393 // File chooser. | 1403 // File chooser. |
1394 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1404 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
1395 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1405 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
1396 bool /* save_as */, | 1406 bool /* save_as */, |
1397 bool /* open_multiple */, | 1407 bool /* open_multiple */, |
1398 std::string /* suggested_file_name */, | 1408 std::string /* suggested_file_name */, |
1399 std::vector<std::string> /* accept_mime_types */) | 1409 std::vector<std::string> /* accept_mime_types */) |
1400 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1410 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
1401 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1411 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
1402 | 1412 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1733 std::vector<ppapi::HostResource> /* buffers */, | 1743 std::vector<ppapi::HostResource> /* buffers */, |
1734 uint32_t /* buffer_size */) | 1744 uint32_t /* buffer_size */) |
1735 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1745 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1736 uint32_t /* status */) | 1746 uint32_t /* status */) |
1737 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1747 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1738 uint32_t /* error */) | 1748 uint32_t /* error */) |
1739 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1749 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1740 uint32_t /* buffer */) | 1750 uint32_t /* buffer */) |
1741 | 1751 |
1742 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1752 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |