OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // From private/ppb_ext_crx_file_system_private.idl, | 5 // From private/ppb_plugin_private_file_system_private.idl, |
6 // modified Fri May 3 09:24:58 2013. | 6 // modified Wed Oct 9 18:34:49 2013. |
7 | 7 |
8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" | 10 #include "ppapi/c/private/ppb_plugin_private_file_system_private.h" |
11 #include "ppapi/shared_impl/tracked_callback.h" | 11 #include "ppapi/shared_impl/tracked_callback.h" |
12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
13 #include "ppapi/thunk/ppb_ext_crx_file_system_private_api.h" | |
14 #include "ppapi/thunk/ppb_instance_api.h" | 13 #include "ppapi/thunk/ppb_instance_api.h" |
| 14 #include "ppapi/thunk/ppb_plugin_private_file_system_private_api.h" |
15 #include "ppapi/thunk/resource_creation_api.h" | 15 #include "ppapi/thunk/resource_creation_api.h" |
16 #include "ppapi/thunk/thunk.h" | 16 #include "ppapi/thunk/thunk.h" |
17 | 17 |
18 namespace ppapi { | 18 namespace ppapi { |
19 namespace thunk { | 19 namespace thunk { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 int32_t Open(PP_Instance instance, | 23 int32_t Open(PP_Instance instance, |
24 PP_Resource* file_system, | 24 PP_Resource* file_system, |
25 struct PP_CompletionCallback callback) { | 25 struct PP_CompletionCallback callback) { |
26 VLOG(4) << "PPB_Ext_CrxFileSystem_Private::Open()"; | 26 VLOG(4) << "PPB_PluginPrivateFileSystem_Private::Open()"; |
27 EnterInstanceAPI<PPB_Ext_CrxFileSystem_Private_API> enter(instance, callback); | 27 EnterInstanceAPI<PPB_PluginPrivateFileSystem_Private_API> enter(instance, |
| 28 callback); |
28 if (enter.failed()) | 29 if (enter.failed()) |
29 return enter.retval(); | 30 return enter.retval(); |
30 return enter.SetResult(enter.functions()->Open(instance, | 31 return enter.SetResult(enter.functions()->Open(instance, |
31 file_system, | 32 file_system, |
32 enter.callback())); | 33 enter.callback())); |
33 } | 34 } |
34 | 35 |
35 const PPB_Ext_CrxFileSystem_Private_0_1 | 36 const PPB_PluginPrivateFileSystem_Private_0_1 |
36 g_ppb_ext_crxfilesystem_private_thunk_0_1 = { | 37 g_ppb_pluginprivatefilesystem_private_thunk_0_1 = { |
37 &Open | 38 &Open |
38 }; | 39 }; |
39 | 40 |
40 } // namespace | 41 } // namespace |
41 | 42 |
42 const PPB_Ext_CrxFileSystem_Private_0_1* | 43 const PPB_PluginPrivateFileSystem_Private_0_1* |
43 GetPPB_Ext_CrxFileSystem_Private_0_1_Thunk() { | 44 GetPPB_PluginPrivateFileSystem_Private_0_1_Thunk() { |
44 return &g_ppb_ext_crxfilesystem_private_thunk_0_1; | 45 return &g_ppb_pluginprivatefilesystem_private_thunk_0_1; |
45 } | 46 } |
46 | 47 |
47 } // namespace thunk | 48 } // namespace thunk |
48 } // namespace ppapi | 49 } // namespace ppapi |
OLD | NEW |