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

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

Issue 7248047: Migrating PPB_FileIO_Dev, PPB_FileRef_Dev, and PPB_FileSystem_Dev dependencies to PPB_FileIO, PPB... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
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 <vector> 9 #include <vector>
9 10
10 #include "ipc/ipc_platform_file.h" 11 #include "ipc/ipc_platform_file.h"
11 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_module.h" 13 #include "ppapi/c/pp_module.h"
13 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
14 15
15 struct PP_FileInfo_Dev; 16 struct PP_FileInfo;
16 struct PPB_Flash_File_FileRef; 17 struct PPB_Flash_File_FileRef;
17 struct PPB_Flash_File_ModuleLocal; 18 struct PPB_Flash_File_ModuleLocal;
18 19
19 namespace pp { 20 namespace pp {
20 namespace proxy { 21 namespace proxy {
21 22
22 class HostResource; 23 class HostResource;
23 struct SerializedDirEntry; 24 struct SerializedDirEntry;
24 25
25 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { 26 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy {
(...skipping 24 matching lines...) Expand all
50 int32_t* result); 51 int32_t* result);
51 void OnMsgDeleteFileOrDir(PP_Instance instance, 52 void OnMsgDeleteFileOrDir(PP_Instance instance,
52 const std::string& path, 53 const std::string& path,
53 PP_Bool recursive, 54 PP_Bool recursive,
54 int32_t* result); 55 int32_t* result);
55 void OnMsgCreateDir(PP_Instance instance, 56 void OnMsgCreateDir(PP_Instance instance,
56 const std::string& path, 57 const std::string& path,
57 int32_t* result); 58 int32_t* result);
58 void OnMsgQueryFile(PP_Instance instance, 59 void OnMsgQueryFile(PP_Instance instance,
59 const std::string& path, 60 const std::string& path,
60 PP_FileInfo_Dev* info, 61 PP_FileInfo* info,
61 int32_t* result); 62 int32_t* result);
62 void OnMsgGetDirContents(PP_Instance instance, 63 void OnMsgGetDirContents(PP_Instance instance,
63 const std::string& path, 64 const std::string& path,
64 std::vector<pp::proxy::SerializedDirEntry>* entries, 65 std::vector<pp::proxy::SerializedDirEntry>* entries,
65 int32_t* result); 66 int32_t* result);
66 }; 67 };
67 68
68 class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy { 69 class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy {
69 public: 70 public:
70 PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher, 71 PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher,
71 const void* target_interface); 72 const void* target_interface);
72 virtual ~PPB_Flash_File_FileRef_Proxy(); 73 virtual ~PPB_Flash_File_FileRef_Proxy();
73 74
74 static const Info* GetInfo(); 75 static const Info* GetInfo();
75 76
76 const PPB_Flash_File_FileRef* ppb_flash_file_module_local_target() const { 77 const PPB_Flash_File_FileRef* ppb_flash_file_module_local_target() const {
77 return static_cast<const PPB_Flash_File_FileRef*>(target_interface()); 78 return static_cast<const PPB_Flash_File_FileRef*>(target_interface());
78 } 79 }
79 80
80 // InterfaceProxy implementation. 81 // InterfaceProxy implementation.
81 virtual bool OnMessageReceived(const IPC::Message& msg); 82 virtual bool OnMessageReceived(const IPC::Message& msg);
82 83
83 private: 84 private:
84 // Message handlers. 85 // Message handlers.
85 void OnMsgOpenFile(const HostResource& host_resource, 86 void OnMsgOpenFile(const HostResource& host_resource,
86 int32_t mode, 87 int32_t mode,
87 IPC::PlatformFileForTransit* file_handle, 88 IPC::PlatformFileForTransit* file_handle,
88 int32_t* result); 89 int32_t* result);
89 void OnMsgQueryFile(const HostResource& host_resource, 90 void OnMsgQueryFile(const HostResource& host_resource,
90 PP_FileInfo_Dev* info, 91 PP_FileInfo* info,
91 int32_t* result); 92 int32_t* result);
92 }; 93 };
93 94
94 } // namespace proxy 95 } // namespace proxy
95 } // namespace pp 96 } // namespace pp
96 97
97 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_ 98 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698