Chromium Code Reviews| 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 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1317 // Messages for resources using call/reply above. | 1319 // Messages for resources using call/reply above. |
| 1318 | 1320 |
| 1319 // Broker ---------------------------------------------------------------------- | 1321 // Broker ---------------------------------------------------------------------- |
| 1320 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) | 1322 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) |
| 1321 | 1323 |
| 1322 // Queries whether the plugin has permission to connect to the Pepper broker. | 1324 // Queries whether the plugin has permission to connect to the Pepper broker. |
| 1323 // The response is contained in the error value of the | 1325 // The response is contained in the error value of the |
| 1324 // ResourceMessageReplyParams in the reply message. | 1326 // ResourceMessageReplyParams in the reply message. |
| 1325 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) | 1327 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) |
| 1326 | 1328 |
| 1329 // Directory reader. | |
| 1330 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DirectoryReader_Create) | |
| 1331 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DirectoryReader_GetNextEntry, | |
|
yzshen1
2013/01/28 17:52:34
Please see me comment on patchset 2.
nhiroki
2013/01/29 05:10:34
Done. These messages and related functions were re
| |
| 1332 ppapi::HostResource /* file_ref_resource */) | |
| 1333 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DirectoryReader_GetNextEntryReply, | |
| 1334 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */, | |
| 1335 std::vector<PP_FileType> /* file_types */) | |
| 1336 | |
| 1327 // File chooser. | 1337 // File chooser. |
| 1328 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) | 1338 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) |
| 1329 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, | 1339 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, |
| 1330 bool /* save_as */, | 1340 bool /* save_as */, |
| 1331 bool /* open_multiple */, | 1341 bool /* open_multiple */, |
| 1332 std::string /* suggested_file_name */, | 1342 std::string /* suggested_file_name */, |
| 1333 std::vector<std::string> /* accept_mime_types */) | 1343 std::vector<std::string> /* accept_mime_types */) |
| 1334 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, | 1344 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, |
| 1335 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) | 1345 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) |
| 1336 | 1346 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1699 std::vector<ppapi::HostResource> /* buffers */, | 1709 std::vector<ppapi::HostResource> /* buffers */, |
| 1700 uint32_t /* buffer_size */) | 1710 uint32_t /* buffer_size */) |
| 1701 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1711 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
| 1702 uint32_t /* status */) | 1712 uint32_t /* status */) |
| 1703 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1713 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
| 1704 uint32_t /* error */) | 1714 uint32_t /* error */) |
| 1705 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1715 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
| 1706 uint32_t /* buffer */) | 1716 uint32_t /* buffer */) |
| 1707 | 1717 |
| 1708 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1718 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |