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

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

Issue 6594099: Pepper/Flapper: Get rid of unimplemented private file ref stuff and implement proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_flash_file_proxy.cc » ('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) 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 <vector> 8 #include <vector>
9 9
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
11 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_module.h" 12 #include "ppapi/c/pp_module.h"
13 #include "ppapi/proxy/interface_proxy.h" 13 #include "ppapi/proxy/interface_proxy.h"
14 14
15 struct PP_FileInfo_Dev; 15 struct PP_FileInfo_Dev;
16 struct PPB_Flash_File_FileRef;
16 struct PPB_Flash_File_ModuleLocal; 17 struct PPB_Flash_File_ModuleLocal;
17 18
18 namespace pp { 19 namespace pp {
19 namespace proxy { 20 namespace proxy {
20 21
22 class HostResource;
21 struct SerializedDirEntry; 23 struct SerializedDirEntry;
22 24
23 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy { 25 class PPB_Flash_File_ModuleLocal_Proxy : public InterfaceProxy {
24 public: 26 public:
25 PPB_Flash_File_ModuleLocal_Proxy(Dispatcher* dispatcher, 27 PPB_Flash_File_ModuleLocal_Proxy(Dispatcher* dispatcher,
26 const void* target_interface); 28 const void* target_interface);
27 virtual ~PPB_Flash_File_ModuleLocal_Proxy(); 29 virtual ~PPB_Flash_File_ModuleLocal_Proxy();
28 30
29 static const Info* GetInfo(); 31 static const Info* GetInfo();
30 32
(...skipping 25 matching lines...) Expand all
56 void OnMsgQueryFile(PP_Instance instance, 58 void OnMsgQueryFile(PP_Instance instance,
57 const std::string& path, 59 const std::string& path,
58 PP_FileInfo_Dev* info, 60 PP_FileInfo_Dev* info,
59 int32_t* result); 61 int32_t* result);
60 void OnMsgGetDirContents(PP_Instance instance, 62 void OnMsgGetDirContents(PP_Instance instance,
61 const std::string& path, 63 const std::string& path,
62 std::vector<pp::proxy::SerializedDirEntry>* entries, 64 std::vector<pp::proxy::SerializedDirEntry>* entries,
63 int32_t* result); 65 int32_t* result);
64 }; 66 };
65 67
68 class PPB_Flash_File_FileRef_Proxy : public InterfaceProxy {
69 public:
70 PPB_Flash_File_FileRef_Proxy(Dispatcher* dispatcher,
71 const void* target_interface);
72 virtual ~PPB_Flash_File_FileRef_Proxy();
73
74 static const Info* GetInfo();
75
76 const PPB_Flash_File_FileRef* ppb_flash_file_module_local_target() const {
77 return static_cast<const PPB_Flash_File_FileRef*>(target_interface());
78 }
79
80 // InterfaceProxy implementation.
81 virtual bool OnMessageReceived(const IPC::Message& msg);
82
83 private:
84 // Message handlers.
85 void OnMsgOpenFile(const HostResource& host_resource,
86 int32_t mode,
87 IPC::PlatformFileForTransit* file_handle,
88 int32_t* result);
89 void OnMsgQueryFile(const HostResource& host_resource,
90 PP_FileInfo_Dev* info,
91 int32_t* result);
92 };
93
66 } // namespace proxy 94 } // namespace proxy
67 } // namespace pp 95 } // namespace pp
68 96
69 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_ 97 #endif // PPAPI_PPB_FLASH_FILE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_flash_file_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698