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 #include "ppapi/proxy/ppb_file_system_proxy.h" | 5 #include "ppapi/proxy/ppb_file_system_proxy.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/c/ppb_file_system.h" | 10 #include "ppapi/c/ppb_file_system.h" |
11 #include "ppapi/proxy/enter_proxy.h" | 11 #include "ppapi/proxy/enter_proxy.h" |
12 #include "ppapi/proxy/host_dispatcher.h" | 12 #include "ppapi/proxy/host_dispatcher.h" |
13 #include "ppapi/proxy/plugin_dispatcher.h" | 13 #include "ppapi/proxy/plugin_dispatcher.h" |
14 #include "ppapi/proxy/plugin_resource.h" | 14 #include "ppapi/proxy/plugin_resource.h" |
15 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
16 #include "ppapi/proxy/serialized_var.h" | 16 #include "ppapi/proxy/serialized_var.h" |
17 #include "ppapi/thunk/enter.h" | 17 #include "ppapi/thunk/enter.h" |
18 #include "ppapi/thunk/ppb_file_system_api.h" | 18 #include "ppapi/thunk/ppb_file_system_api.h" |
19 #include "ppapi/thunk/resource_creation_api.h" | 19 #include "ppapi/thunk/resource_creation_api.h" |
20 #include "ppapi/thunk/thunk.h" | 20 #include "ppapi/thunk/thunk.h" |
21 | 21 |
| 22 using ppapi::HostResource; |
22 using ppapi::thunk::EnterFunctionNoLock; | 23 using ppapi::thunk::EnterFunctionNoLock; |
23 using ppapi::thunk::PPB_FileSystem_API; | 24 using ppapi::thunk::PPB_FileSystem_API; |
24 using ppapi::thunk::ResourceCreationAPI; | 25 using ppapi::thunk::ResourceCreationAPI; |
25 | 26 |
26 namespace pp { | 27 namespace pp { |
27 namespace proxy { | 28 namespace proxy { |
28 | 29 |
29 namespace { | 30 namespace { |
30 | 31 |
31 InterfaceProxy* CreateFileSystemProxy(Dispatcher* dispatcher, | 32 InterfaceProxy* CreateFileSystemProxy(Dispatcher* dispatcher, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 192 |
192 void PPB_FileSystem_Proxy::OpenCompleteInHost( | 193 void PPB_FileSystem_Proxy::OpenCompleteInHost( |
193 int32_t result, | 194 int32_t result, |
194 const HostResource& host_resource) { | 195 const HostResource& host_resource) { |
195 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( | 196 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( |
196 INTERFACE_ID_PPB_FILE_SYSTEM, host_resource, result)); | 197 INTERFACE_ID_PPB_FILE_SYSTEM, host_resource, result)); |
197 } | 198 } |
198 | 199 |
199 } // namespace proxy | 200 } // namespace proxy |
200 } // namespace pp | 201 } // namespace pp |
OLD | NEW |