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

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

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Various cleanups Created 5 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
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 <map> 6 #include <map>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/shared_memory.h" 12 #include "base/memory/shared_memory.h"
13 #include "base/process/process.h" 13 #include "base/process/process.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/sync_socket.h" 15 #include "base/sync_socket.h"
16 #include "gpu/command_buffer/common/command_buffer.h" 16 #include "gpu/command_buffer/common/command_buffer.h"
17 #include "gpu/command_buffer/common/mailbox.h" 17 #include "gpu/command_buffer/common/mailbox.h"
18 #include "gpu/ipc/gpu_command_buffer_traits.h" 18 #include "gpu/ipc/gpu_command_buffer_traits.h"
19 #include "ipc/ipc_channel_handle.h" 19 #include "ipc/ipc_channel_handle.h"
20 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h" 21 #include "ipc/ipc_message_utils.h"
22 #include "ipc/ipc_platform_file.h" 22 #include "ipc/ipc_platform_file.h"
23 #include "ppapi/c/dev/pp_video_capture_dev.h" 23 #include "ppapi/c/dev/pp_video_capture_dev.h"
24 #include "ppapi/c/dev/pp_video_dev.h" 24 #include "ppapi/c/dev/pp_video_dev.h"
25 #include "ppapi/c/dev/ppb_filesystemprovider_dev.h"
25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 26 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
26 #include "ppapi/c/dev/ppb_url_util_dev.h" 27 #include "ppapi/c/dev/ppb_url_util_dev.h"
27 #include "ppapi/c/dev/ppp_printing_dev.h" 28 #include "ppapi/c/dev/ppp_printing_dev.h"
28 #include "ppapi/c/pp_bool.h" 29 #include "ppapi/c/pp_bool.h"
29 #include "ppapi/c/pp_codecs.h" 30 #include "ppapi/c/pp_codecs.h"
30 #include "ppapi/c/pp_file_info.h" 31 #include "ppapi/c/pp_file_info.h"
31 #include "ppapi/c/pp_instance.h" 32 #include "ppapi/c/pp_instance.h"
32 #include "ppapi/c/pp_module.h" 33 #include "ppapi/c/pp_module.h"
33 #include "ppapi/c/pp_point.h" 34 #include "ppapi/c/pp_point.h"
34 #include "ppapi/c/pp_rect.h" 35 #include "ppapi/c/pp_rect.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 IPC_ENUM_TRAITS(PP_ImageDataFormat) 104 IPC_ENUM_TRAITS(PP_ImageDataFormat)
104 IPC_ENUM_TRAITS_MAX_VALUE(PP_InitDataType, PP_INITDATATYPE_WEBM) 105 IPC_ENUM_TRAITS_MAX_VALUE(PP_InitDataType, PP_INITDATATYPE_WEBM)
105 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 106 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
106 IPC_ENUM_TRAITS(PP_InputEvent_Type) 107 IPC_ENUM_TRAITS(PP_InputEvent_Type)
107 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private, 108 IPC_ENUM_TRAITS_MAX_VALUE(PP_IsolatedFileSystemType_Private,
108 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE) 109 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE)
109 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private, 110 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetAddressFamily_Private,
110 PP_NETADDRESSFAMILY_PRIVATE_IPV6) 111 PP_NETADDRESSFAMILY_PRIVATE_IPV6)
111 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP) 112 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_State, PP_NETWORKLIST_STATE_UP)
112 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR) 113 IPC_ENUM_TRAITS_MAX_VALUE(PP_NetworkList_Type, PP_NETWORKLIST_TYPE_CELLULAR)
114 IPC_ENUM_TRAITS_MAX_VALUE(PP_OperationType_Dev,PP_OperationType_ABORT)
113 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) 115 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
114 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev) 116 IPC_ENUM_TRAITS(PP_PrintOutputFormat_Dev)
115 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev) 117 IPC_ENUM_TRAITS(PP_PrintScalingOption_Dev)
116 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDuplexMode_Dev, PP_PRIVATEDUPLEXMODE_LAST) 118 IPC_ENUM_TRAITS_MAX_VALUE(PP_PrivateDuplexMode_Dev, PP_PRIVATEDUPLEXMODE_LAST)
117 IPC_ENUM_TRAITS(PP_PrivateFontCharset) 119 IPC_ENUM_TRAITS(PP_PrivateFontCharset)
120 IPC_ENUM_TRAITS_MAX_VALUE(PP_ProviderError_Dev,PP_ProviderError_IO)
118 IPC_ENUM_TRAITS(PP_ResourceImage) 121 IPC_ENUM_TRAITS(PP_ResourceImage)
119 IPC_ENUM_TRAITS(PP_ResourceString) 122 IPC_ENUM_TRAITS(PP_ResourceString)
120 IPC_ENUM_TRAITS_MAX_VALUE(PP_SessionType, PP_SESSIONTYPE_PERSISTENT_RELEASE) 123 IPC_ENUM_TRAITS_MAX_VALUE(PP_SessionType, PP_SESSIONTYPE_PERSISTENT_RELEASE)
121 IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option, 124 IPC_ENUM_TRAITS_MAX_VALUE(PP_TCPSocket_Option,
122 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE) 125 PP_TCPSOCKET_OPTION_RECV_BUFFER_SIZE)
123 IPC_ENUM_TRAITS(PP_TextInput_Type) 126 IPC_ENUM_TRAITS(PP_TextInput_Type)
124 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev) 127 IPC_ENUM_TRAITS(PP_TrueTypeFontFamily_Dev)
125 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev) 128 IPC_ENUM_TRAITS(PP_TrueTypeFontStyle_Dev)
126 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev) 129 IPC_ENUM_TRAITS(PP_TrueTypeFontWeight_Dev)
127 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev) 130 IPC_ENUM_TRAITS(PP_TrueTypeFontWidth_Dev)
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch, 1430 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Touch,
1428 PP_Time /* last_access_time */, 1431 PP_Time /* last_access_time */,
1429 PP_Time /* last_modified_time */) 1432 PP_Time /* last_modified_time */)
1430 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength, 1433 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_SetLength,
1431 int64_t /* length */) 1434 int64_t /* length */)
1432 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush) 1435 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Flush)
1433 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) 1436 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1434 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) 1437 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
1435 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) 1438 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1436 1439
1440
1441 // Filesystem provider
1442 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FilesystemProvider_Create)
1443 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FilesystemProvider_Mount,
1444 base::ListValue /*request*/)
1445 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FilesystemProvider_MountReply,
1446 PP_ProviderError_Dev /*error indicator*/ )
1447 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FilesystemProvider_Unmount,
1448 std::string /*file system id*/)
1449 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FilesystemProvider_UnmountReply,
1450 PP_ProviderError_Dev /*error indicator*/ )
1451 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FilesystemProvider_OperationRequest,
1452 PP_OperationType_Dev/*operation_type*/,
1453 base::ListValue/*operation args*/)
1454 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FilesystemProvider_OperationResponse,
1455 base::ListValue/*operation response*/)
1456 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FilesystemProvider_WriteAck)
1457 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FilesystemProvider_ReadAck)
1458 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_FilesystemProvider_Buffers,
1459 uint32_t/*size of read region*/,
1460 uint32_t/*size of write region*/)
1437 // FileRef 1461 // FileRef
1438 // Creates a FileRef to a path on an external file system. This message may 1462 // Creates a FileRef to a path on an external file system. This message may
1439 // only be sent from the renderer. 1463 // only be sent from the renderer.
1440 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS, 1464 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileRef_CreateForRawFS,
1441 base::FilePath /* external_path */) 1465 base::FilePath /* external_path */)
1442 1466
1443 // Creates a FileRef to a path on a file system that uses fileapi. 1467 // Creates a FileRef to a path on a file system that uses fileapi.
1444 // This message may be sent from the renderer or the plugin. 1468 // This message may be sent from the renderer or the plugin.
1445 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI, 1469 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileRef_CreateForFileAPI,
1446 PP_Resource /* file_system */, 1470 PP_Resource /* file_system */,
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 std::vector<ppapi::HostResource> /* buffers */, 2368 std::vector<ppapi::HostResource> /* buffers */,
2345 uint32_t /* buffer_size */) 2369 uint32_t /* buffer_size */)
2346 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 2370 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
2347 uint32_t /* status */) 2371 uint32_t /* status */)
2348 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 2372 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
2349 uint32_t /* error */) 2373 uint32_t /* error */)
2350 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 2374 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
2351 uint32_t /* buffer */) 2375 uint32_t /* buffer */)
2352 2376
2353 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2377 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698