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

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

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« no previous file with comments | « ppapi/proxy/plugin_resource.cc ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29 matching lines...) Expand all
40 #include "ppapi/c/private/ppb_net_address_private.h" 40 #include "ppapi/c/private/ppb_net_address_private.h"
41 #include "ppapi/c/private/ppb_tcp_socket_private.h" 41 #include "ppapi/c/private/ppb_tcp_socket_private.h"
42 #include "ppapi/c/private/ppb_udp_socket_private.h" 42 #include "ppapi/c/private/ppb_udp_socket_private.h"
43 #include "ppapi/c/private/ppp_flash_browser_operations.h" 43 #include "ppapi/c/private/ppp_flash_browser_operations.h"
44 #include "ppapi/proxy/ppapi_param_traits.h" 44 #include "ppapi/proxy/ppapi_param_traits.h"
45 #include "ppapi/proxy/ppapi_proxy_export.h" 45 #include "ppapi/proxy/ppapi_proxy_export.h"
46 #include "ppapi/proxy/resource_message_params.h" 46 #include "ppapi/proxy/resource_message_params.h"
47 #include "ppapi/proxy/serialized_flash_menu.h" 47 #include "ppapi/proxy/serialized_flash_menu.h"
48 #include "ppapi/proxy/serialized_structs.h" 48 #include "ppapi/proxy/serialized_structs.h"
49 #include "ppapi/proxy/serialized_var.h" 49 #include "ppapi/proxy/serialized_var.h"
50 #include "ppapi/shared_impl/dir_contents.h"
51 #include "ppapi/shared_impl/file_path.h"
50 #include "ppapi/shared_impl/ppapi_preferences.h" 52 #include "ppapi/shared_impl/ppapi_preferences.h"
51 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 53 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
52 #include "ppapi/shared_impl/ppb_input_event_shared.h" 54 #include "ppapi/shared_impl/ppb_input_event_shared.h"
53 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" 55 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
54 #include "ppapi/shared_impl/ppb_view_shared.h" 56 #include "ppapi/shared_impl/ppb_view_shared.h"
55 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 57 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
56 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" 58 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
57 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 59 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
58 #include "ppapi/shared_impl/url_request_info_data.h" 60 #include "ppapi/shared_impl/url_request_info_data.h"
59 #include "ppapi/shared_impl/url_response_info_data.h" 61 #include "ppapi/shared_impl/url_response_info_data.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 IPC_STRUCT_TRAITS_MEMBER(query) 157 IPC_STRUCT_TRAITS_MEMBER(query)
156 IPC_STRUCT_TRAITS_MEMBER(ref) 158 IPC_STRUCT_TRAITS_MEMBER(ref)
157 IPC_STRUCT_TRAITS_END() 159 IPC_STRUCT_TRAITS_END()
158 160
159 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData) 161 IPC_STRUCT_TRAITS_BEGIN(ppapi::DeviceRefData)
160 IPC_STRUCT_TRAITS_MEMBER(type) 162 IPC_STRUCT_TRAITS_MEMBER(type)
161 IPC_STRUCT_TRAITS_MEMBER(name) 163 IPC_STRUCT_TRAITS_MEMBER(name)
162 IPC_STRUCT_TRAITS_MEMBER(id) 164 IPC_STRUCT_TRAITS_MEMBER(id)
163 IPC_STRUCT_TRAITS_END() 165 IPC_STRUCT_TRAITS_END()
164 166
167 IPC_STRUCT_TRAITS_BEGIN(ppapi::DirEntry)
168 IPC_STRUCT_TRAITS_MEMBER(name)
169 IPC_STRUCT_TRAITS_MEMBER(is_dir)
170 IPC_STRUCT_TRAITS_END()
171
165 IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting) 172 IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
166 IPC_STRUCT_TRAITS_MEMBER(site) 173 IPC_STRUCT_TRAITS_MEMBER(site)
167 IPC_STRUCT_TRAITS_MEMBER(permission) 174 IPC_STRUCT_TRAITS_MEMBER(permission)
168 IPC_STRUCT_TRAITS_END() 175 IPC_STRUCT_TRAITS_END()
169 176
170 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) 177 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
171 IPC_STRUCT_TRAITS_MEMBER(rect) 178 IPC_STRUCT_TRAITS_MEMBER(rect)
172 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) 179 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
173 IPC_STRUCT_TRAITS_MEMBER(is_page_visible) 180 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
174 IPC_STRUCT_TRAITS_MEMBER(clip_rect) 181 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 PP_Bool /* from_user_action */, 1274 PP_Bool /* from_user_action */,
1268 int32_t /* result */) 1275 int32_t /* result */)
1269 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset, 1276 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset,
1270 PP_Instance /* instance */, 1277 PP_Instance /* instance */,
1271 PP_Time /* t */, 1278 PP_Time /* t */,
1272 double /* offset */) 1279 double /* offset */)
1273 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost, 1280 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_IsRectTopmost,
1274 PP_Instance /* instance */, 1281 PP_Instance /* instance */,
1275 PP_Rect /* rect */, 1282 PP_Rect /* rect */,
1276 PP_Bool /* result */) 1283 PP_Bool /* result */)
1277 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiHostMsg_PPBFlash_OpenFileRef,
1278 PP_Instance /* instance */,
1279 ppapi::HostResource /* file_ref */,
1280 int32_t /* mode */,
1281 IPC::PlatformFileForTransit /* file_handle */,
1282 int32_t /* result */)
1283 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBFlash_QueryFileRef,
1284 PP_Instance /* instance */,
1285 ppapi::HostResource /* file_ref */,
1286 PP_FileInfo /* info */,
1287 int32_t /* result */)
1288 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting, 1284 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFlash_GetSetting,
1289 PP_Instance /* instance */, 1285 PP_Instance /* instance */,
1290 PP_FlashSetting /* setting */, 1286 PP_FlashSetting /* setting */,
1291 ppapi::proxy::SerializedVar /* result */) 1287 ppapi::proxy::SerializedVar /* result */)
1292 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting, 1288 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBFlash_InvokePrinting,
1293 PP_Instance /* instance */) 1289 PP_Instance /* instance */)
1294 1290
1295 // PPB_Flash_DeviceID. 1291 // PPB_Flash_DeviceID.
1296 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashDeviceID_Get, 1292 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFlashDeviceID_Get,
1297 int32 /* routing_id */, 1293 int32 /* routing_id */,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData, 1628 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashClipboard_ReadData,
1633 uint32_t /* clipboard_type */, 1629 uint32_t /* clipboard_type */,
1634 uint32_t /* format */) 1630 uint32_t /* format */)
1635 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply, 1631 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashClipboard_ReadDataReply,
1636 std::string /* result */) 1632 std::string /* result */)
1637 IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData, 1633 IPC_MESSAGE_CONTROL3(PpapiHostMsg_FlashClipboard_WriteData,
1638 uint32_t /* clipboard_type */, 1634 uint32_t /* clipboard_type */,
1639 std::vector<uint32_t> /* formats */, 1635 std::vector<uint32_t> /* formats */,
1640 std::vector<std::string> /* data */) 1636 std::vector<std::string> /* data */)
1641 1637
1638 // Flash file.
1639 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_Create)
1640 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_OpenFile,
1641 ppapi::PepperFilePath /* path */,
1642 int /* flags */)
1643 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_RenameFile,
1644 ppapi::PepperFilePath /* from_path */,
1645 ppapi::PepperFilePath /* to_path */)
1646 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFile_DeleteFileOrDir,
1647 ppapi::PepperFilePath /* path */,
1648 bool /* recursive */)
1649 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_CreateDir,
1650 ppapi::PepperFilePath /* path */)
1651 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_QueryFile,
1652 ppapi::PepperFilePath /* path */)
1653 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_QueryFileReply,
1654 base::PlatformFileInfo /* file_info */)
1655 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFile_GetDirContents,
1656 ppapi::PepperFilePath /* path */)
1657 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFile_GetDirContentsReply,
1658 ppapi::DirContents /* entries */)
1659 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashFile_CreateTemporaryFile)
1660
1642 // Flash font file. 1661 // Flash font file.
1643 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create, 1662 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FlashFontFile_Create,
1644 ppapi::proxy::SerializedFontDescription /* description */, 1663 ppapi::proxy::SerializedFontDescription /* description */,
1645 PP_PrivateFontCharset /* charset */) 1664 PP_PrivateFontCharset /* charset */)
1646 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable, 1665 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FlashFontFile_GetFontTable,
1647 uint32_t /* table */) 1666 uint32_t /* table */)
1648 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply, 1667 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashFontFile_GetFontTableReply,
1649 std::string /* output */) 1668 std::string /* output */)
1650 1669
1651 // Flash fullscreen. 1670 // Flash fullscreen.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 std::vector<ppapi::HostResource> /* buffers */, 1723 std::vector<ppapi::HostResource> /* buffers */,
1705 uint32_t /* buffer_size */) 1724 uint32_t /* buffer_size */)
1706 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1725 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1707 uint32_t /* status */) 1726 uint32_t /* status */)
1708 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1727 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1709 uint32_t /* error */) 1728 uint32_t /* error */)
1710 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1729 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1711 uint32_t /* buffer */) 1730 uint32_t /* buffer */)
1712 1731
1713 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1732 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_resource.cc ('k') | ppapi/proxy/ppapi_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698