Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

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

Issue 13726024: Refactor FileSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_file_ref_proxy.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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "ppapi/shared_impl/url_response_info_data.h" 65 #include "ppapi/shared_impl/url_response_info_data.h"
66 66
67 #undef IPC_MESSAGE_EXPORT 67 #undef IPC_MESSAGE_EXPORT
68 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT 68 #define IPC_MESSAGE_EXPORT PPAPI_PROXY_EXPORT
69 69
70 #define IPC_MESSAGE_START PpapiMsgStart 70 #define IPC_MESSAGE_START PpapiMsgStart
71 71
72 IPC_ENUM_TRAITS(PP_AudioSampleRate) 72 IPC_ENUM_TRAITS(PP_AudioSampleRate)
73 IPC_ENUM_TRAITS(PP_DeviceType_Dev) 73 IPC_ENUM_TRAITS(PP_DeviceType_Dev)
74 IPC_ENUM_TRAITS(PP_DecryptorStreamType) 74 IPC_ENUM_TRAITS(PP_DecryptorStreamType)
75 IPC_ENUM_TRAITS(PP_FileSystemType)
75 IPC_ENUM_TRAITS(PP_FileType) 76 IPC_ENUM_TRAITS(PP_FileType)
76 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission) 77 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_Permission)
77 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType) 78 IPC_ENUM_TRAITS(PP_Flash_BrowserOperations_SettingType)
78 IPC_ENUM_TRAITS(PP_FlashSetting) 79 IPC_ENUM_TRAITS(PP_FlashSetting)
79 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton) 80 IPC_ENUM_TRAITS(PP_InputEvent_MouseButton)
80 IPC_ENUM_TRAITS(PP_InputEvent_Type) 81 IPC_ENUM_TRAITS(PP_InputEvent_Type)
81 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private) 82 IPC_ENUM_TRAITS(PP_NetAddressFamily_Private)
82 IPC_ENUM_TRAITS(PP_NetworkListState_Private) 83 IPC_ENUM_TRAITS(PP_NetworkListState_Private)
83 IPC_ENUM_TRAITS(PP_NetworkListType_Private) 84 IPC_ENUM_TRAITS(PP_NetworkListType_Private)
84 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev) 85 IPC_ENUM_TRAITS(PP_PrintOrientation_Dev)
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 ppapi::HostResource /* audio_id */, 784 ppapi::HostResource /* audio_id */,
784 bool /* play */) 785 bool /* play */)
785 786
786 // PPB_Core. 787 // PPB_Core.
787 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, 788 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
788 ppapi::HostResource) 789 ppapi::HostResource)
789 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, 790 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
790 ppapi::HostResource) 791 ppapi::HostResource)
791 792
792 // PPB_FileRef. 793 // PPB_FileRef.
793 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileRef_Create, 794 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileRef_Create,
794 ppapi::HostResource /* file_system */, 795 PP_Instance /* instance */,
victorhsieh 2013/04/11 18:39:21 For security review: HostResource contains a pp_in
796 PP_Resource /* file_system */,
795 std::string /* path */, 797 std::string /* path */,
796 ppapi::PPB_FileRef_CreateInfo /* result */) 798 ppapi::PPB_FileRef_CreateInfo /* result */)
797 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent, 799 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
798 ppapi::HostResource /* file_ref */, 800 ppapi::HostResource /* file_ref */,
799 ppapi::PPB_FileRef_CreateInfo /* result */) 801 ppapi::PPB_FileRef_CreateInfo /* result */)
800 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory, 802 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
801 ppapi::HostResource /* file_ref */, 803 ppapi::HostResource /* file_ref */,
802 PP_Bool /* make_ancestors */, 804 PP_Bool /* make_ancestors */,
803 uint32_t /* callback_id */) 805 uint32_t /* callback_id */)
804 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch, 806 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
805 ppapi::HostResource /* file_ref */, 807 ppapi::HostResource /* file_ref */,
806 PP_Time /* last_access */, 808 PP_Time /* last_access */,
807 PP_Time /* last_modified */, 809 PP_Time /* last_modified */,
808 uint32_t /* callback_id */) 810 uint32_t /* callback_id */)
809 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete, 811 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
810 ppapi::HostResource /* file_ref */, 812 ppapi::HostResource /* file_ref */,
811 uint32_t /* callback_id */) 813 uint32_t /* callback_id */)
812 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, 814 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
813 ppapi::HostResource /* file_ref */, 815 ppapi::HostResource /* file_ref */,
814 ppapi::HostResource /* new_file_ref */, 816 ppapi::HostResource /* new_file_ref */,
815 uint32_t /* callback_id */) 817 uint32_t /* callback_id */)
816 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, 818 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query,
817 ppapi::HostResource /* file_ref */, 819 ppapi::HostResource /* file_ref */,
818 uint32_t /* callback_id */) 820 uint32_t /* callback_id */)
819 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, 821 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
820 ppapi::HostResource /* file_ref */, 822 ppapi::HostResource /* file_ref */,
821 ppapi::proxy::SerializedVar /* result */) 823 ppapi::proxy::SerializedVar /* result */)
822 824
823 // PPB_FileSystem.
824 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBFileSystem_Create,
825 PP_Instance /* instance */,
826 int /* type */,
827 ppapi::HostResource /* result */)
828 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileSystem_Open,
829 ppapi::HostResource /* result */,
830 int64_t /* expected_size */)
831
832 // PPB_Graphics3D. 825 // PPB_Graphics3D.
833 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, 826 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
834 PP_Instance /* instance */, 827 PP_Instance /* instance */,
835 ppapi::HostResource /* share_context */, 828 ppapi::HostResource /* share_context */,
836 std::vector<int32_t> /* attrib_list */, 829 std::vector<int32_t> /* attrib_list */,
837 ppapi::HostResource /* result */) 830 ppapi::HostResource /* result */)
838 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, 831 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
839 ppapi::HostResource /* context */) 832 ppapi::HostResource /* context */)
840 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, 833 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
841 ppapi::HostResource /* context */, 834 ppapi::HostResource /* context */,
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 int32_t /* bytes_to_write */) 1393 int32_t /* bytes_to_write */)
1401 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength, 1394 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileIO_WillSetLength,
1402 int64_t /* length */) 1395 int64_t /* length */)
1403 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor) 1396 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_GetOSFileDescriptor)
1404 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply, 1397 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_GetOSFileDescriptorReply,
1405 int32_t /* file descriptor */) 1398 int32_t /* file descriptor */)
1406 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle) 1399 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_RequestOSFileHandle)
1407 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply) 1400 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_RequestOSFileHandleReply)
1408 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply) 1401 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_GeneralReply)
1409 1402
1403 // FileSystem
1404 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Create,
victorhsieh 2013/04/11 18:39:21 For security review: Create and Open are just a re
1405 PP_FileSystemType /* type */)
1406 IPC_MESSAGE_CONTROL1(PpapiHostMsg_FileSystem_Open,
1407 int64_t /* expected_size */)
1408 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileSystem_OpenReply)
victorhsieh 2013/04/11 18:39:21 For security review: This is a message that simply
1409
1410 // Flash device ID. 1410 // Flash device ID.
1411 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create) 1411 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_Create)
1412 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID) 1412 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDeviceID_GetDeviceID)
1413 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, 1413 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply,
1414 std::string /* id */) 1414 std::string /* id */)
1415 1415
1416 // Gamepad. 1416 // Gamepad.
1417 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) 1417 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1418 1418
1419 // Requests that the gamepad host send the shared memory handle to the plugin 1419 // Requests that the gamepad host send the shared memory handle to the plugin
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 std::vector<ppapi::HostResource> /* buffers */, 1827 std::vector<ppapi::HostResource> /* buffers */,
1828 uint32_t /* buffer_size */) 1828 uint32_t /* buffer_size */)
1829 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, 1829 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus,
1830 uint32_t /* status */) 1830 uint32_t /* status */)
1831 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, 1831 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError,
1832 uint32_t /* error */) 1832 uint32_t /* error */)
1833 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, 1833 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady,
1834 uint32_t /* buffer */) 1834 uint32_t /* buffer */)
1835 1835
1836 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1836 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_file_ref_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698