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_ref_proxy.h" | 5 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/ppb_file_ref.h" | 8 #include "ppapi/c/ppb_file_ref.h" |
9 #include "ppapi/c/private/ppb_proxy_private.h" | 9 #include "ppapi/c/private/ppb_proxy_private.h" |
10 #include "ppapi/proxy/enter_proxy.h" | 10 #include "ppapi/proxy/enter_proxy.h" |
11 #include "ppapi/proxy/host_dispatcher.h" | 11 #include "ppapi/proxy/host_dispatcher.h" |
12 #include "ppapi/proxy/plugin_dispatcher.h" | 12 #include "ppapi/proxy/plugin_dispatcher.h" |
13 #include "ppapi/proxy/plugin_resource.h" | 13 #include "ppapi/proxy/plugin_resource.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/thunk/ppb_file_ref_api.h" | 16 #include "ppapi/thunk/ppb_file_ref_api.h" |
17 #include "ppapi/thunk/resource_creation_api.h" | 17 #include "ppapi/thunk/resource_creation_api.h" |
18 #include "ppapi/thunk/thunk.h" | 18 #include "ppapi/thunk/thunk.h" |
19 | 19 |
| 20 using ppapi::HostResource; |
20 using ppapi::thunk::EnterFunctionNoLock; | 21 using ppapi::thunk::EnterFunctionNoLock; |
21 using ppapi::thunk::EnterResourceNoLock; | 22 using ppapi::thunk::EnterResourceNoLock; |
22 using ppapi::thunk::PPB_FileRef_API; | 23 using ppapi::thunk::PPB_FileRef_API; |
23 using ppapi::thunk::ResourceCreationAPI; | 24 using ppapi::thunk::ResourceCreationAPI; |
24 | 25 |
25 namespace pp { | 26 namespace pp { |
26 namespace proxy { | 27 namespace proxy { |
27 | 28 |
28 namespace { | 29 namespace { |
29 | 30 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 return; | 297 return; |
297 PP_CompletionCallback callback = ReceiveCallback(serialized_callback); | 298 PP_CompletionCallback callback = ReceiveCallback(serialized_callback); |
298 int32_t result = enter.object()->Rename(new_file_ref.host_resource(), | 299 int32_t result = enter.object()->Rename(new_file_ref.host_resource(), |
299 callback); | 300 callback); |
300 if (result != PP_OK_COMPLETIONPENDING) | 301 if (result != PP_OK_COMPLETIONPENDING) |
301 PP_RunCompletionCallback(&callback, result); | 302 PP_RunCompletionCallback(&callback, result); |
302 } | 303 } |
303 | 304 |
304 } // namespace proxy | 305 } // namespace proxy |
305 } // namespace pp | 306 } // namespace pp |
OLD | NEW |