OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef PPAPI_PPB_FLASH_FILE_PROXY_H_ | 5 #ifndef PPAPI_PPB_FLASH_FILE_PROXY_H_ |
6 #define PPAPI_PPB_FLASH_FILE_PROXY_H_ | 6 #define PPAPI_PPB_FLASH_FILE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_module.h" | 13 #include "ppapi/c/pp_module.h" |
14 #include "ppapi/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
15 | 15 |
16 struct PP_FileInfo; | 16 struct PP_FileInfo; |
17 struct PPB_Flash_File_FileRef; | 17 struct PPB_Flash_File_FileRef; |
18 struct PPB_Flash_File_ModuleLocal; | 18 struct PPB_Flash_File_ModuleLocal; |
19 | 19 |
20 namespace ppapi { | 20 namespace ppapi { |
| 21 |
21 class HostResource; | 22 class HostResource; |
22 } | |
23 | 23 |
24 namespace pp { | |
25 namespace proxy { | 24 namespace proxy { |
26 | 25 |
27 struct SerializedDirEntry; | 26 struct SerializedDirEntry; |
28 | 27 |
29 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { | 28 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { |
30 public: | 29 public: |
31 PPB_Flash_File_ModuleLocal_Proxy(Dispatcher* dispatcher, | 30 PPB_Flash_File_ModuleLocal_Proxy(Dispatcher* dispatcher, |
32 const void* target_interface); | 31 const void* target_interface); |
33 virtual ~PPB_Flash_File_ModuleLocal_Proxy(); | 32 virtual ~PPB_Flash_File_ModuleLocal_Proxy(); |
34 | 33 |
(...skipping 23 matching lines...) Expand all Loading... |
58 int32_t* result); | 57 int32_t* result); |
59 void OnMsgCreateDir(PP_Instance instance, | 58 void OnMsgCreateDir(PP_Instance instance, |
60 const std::string& path, | 59 const std::string& path, |
61 int32_t* result); | 60 int32_t* result); |
62 void OnMsgQueryFile(PP_Instance instance, | 61 void OnMsgQueryFile(PP_Instance instance, |
63 const std::string& path, | 62 const std::string& path, |
64 PP_FileInfo* info, | 63 PP_FileInfo* info, |
65 int32_t* result); | 64 int32_t* result); |
66 void OnMsgGetDirContents(PP_Instance instance, | 65 void OnMsgGetDirContents(PP_Instance instance, |
67 const std::string& path, | 66 const std::string& path, |
68 std::vector<pp::proxy::SerializedDirEntry>* entries, | 67 std::vector<SerializedDirEntry>* entries, |
69 int32_t* result); | 68 int32_t* result); |
70 }; | 69 }; |
71 | 70 |
72 class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy { | 71 class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy { |
73 public: | 72 public: |
74 PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher, | 73 PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher, |
75 const void* target_interface); | 74 const void* target_interface); |
76 virtual ~PPB_Flash_File_FileRef_Proxy(); | 75 virtual ~PPB_Flash_File_FileRef_Proxy(); |
77 | 76 |
78 static const Info* GetInfo(); | 77 static const Info* GetInfo(); |
(...skipping 10 matching lines...) Expand all Loading... |
89 void OnMsgOpenFile(const ppapi::HostResource& host_resource, | 88 void OnMsgOpenFile(const ppapi::HostResource& host_resource, |
90 int32_t mode, | 89 int32_t mode, |
91 IPC::PlatformFileForTransit* file_handle, | 90 IPC::PlatformFileForTransit* file_handle, |
92 int32_t* result); | 91 int32_t* result); |
93 void OnMsgQueryFile(const ppapi::HostResource& host_resource, | 92 void OnMsgQueryFile(const ppapi::HostResource& host_resource, |
94 PP_FileInfo* info, | 93 PP_FileInfo* info, |
95 int32_t* result); | 94 int32_t* result); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace proxy | 97 } // namespace proxy |
99 } // namespace pp | 98 } // namespace ppapi |
100 | 99 |
101 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_ | 100 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_ |
OLD | NEW |