OLD | NEW |
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 #include "ppapi/proxy/ppb_file_system_proxy.h" | 5 #include "ppapi/proxy/ppb_file_system_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.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/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
15 #include "ppapi/proxy/serialized_var.h" | 15 #include "ppapi/proxy/serialized_var.h" |
16 #include "ppapi/shared_impl/tracked_callback.h" | 16 #include "ppapi/shared_impl/tracked_callback.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::thunk::EnterFunctionNoLock; | |
23 using ppapi::thunk::PPB_FileSystem_API; | 22 using ppapi::thunk::PPB_FileSystem_API; |
24 using ppapi::thunk::ResourceCreationAPI; | 23 using ppapi::thunk::ResourceCreationAPI; |
25 | 24 |
26 namespace ppapi { | 25 namespace ppapi { |
27 namespace proxy { | 26 namespace proxy { |
28 | 27 |
29 namespace { | 28 namespace { |
30 | 29 |
31 InterfaceProxy* CreateFileSystemProxy(Dispatcher* dispatcher) { | 30 InterfaceProxy* CreateFileSystemProxy(Dispatcher* dispatcher) { |
32 return new PPB_FileSystem_Proxy(dispatcher); | 31 return new PPB_FileSystem_Proxy(dispatcher); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 175 |
177 void PPB_FileSystem_Proxy::OpenCompleteInHost( | 176 void PPB_FileSystem_Proxy::OpenCompleteInHost( |
178 int32_t result, | 177 int32_t result, |
179 const HostResource& host_resource) { | 178 const HostResource& host_resource) { |
180 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( | 179 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( |
181 API_ID_PPB_FILE_SYSTEM, host_resource, result)); | 180 API_ID_PPB_FILE_SYSTEM, host_resource, result)); |
182 } | 181 } |
183 | 182 |
184 } // namespace proxy | 183 } // namespace proxy |
185 } // namespace ppapi | 184 } // namespace ppapi |
OLD | NEW |