HistoryService fixups for scoped_refptr operator T* removal.
[chromium-blink-merge.git] / ppapi / thunk / ppb_isolated_file_system_private_thunk.cc
blob6b328592d1569501955f0da78fbfa7afb7088bd7
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
3 // found in the LICENSE file.
5 // From private/ppb_isolated_file_system_private.idl,
6 // modified Mon Nov 25 11:17:07 2013.
8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
11 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/enter.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_isolated_file_system_private_api.h"
16 namespace ppapi {
17 namespace thunk {
19 namespace {
21 int32_t Open(PP_Instance instance,
22 PP_IsolatedFileSystemType_Private type,
23 PP_Resource* file_system,
24 struct PP_CompletionCallback callback) {
25 VLOG(4) << "PPB_IsolatedFileSystem_Private::Open()";
26 EnterInstanceAPI<PPB_IsolatedFileSystem_Private_API> enter(instance,
27 callback);
28 if (enter.failed())
29 return enter.retval();
30 return enter.SetResult(enter.functions()->Open(instance,
31 type,
32 file_system,
33 enter.callback()));
36 const PPB_IsolatedFileSystem_Private_0_2
37 g_ppb_isolatedfilesystem_private_thunk_0_2 = {
38 &Open
41 } // namespace
43 PPAPI_THUNK_EXPORT const PPB_IsolatedFileSystem_Private_0_2*
44 GetPPB_IsolatedFileSystem_Private_0_2_Thunk() {
45 return &g_ppb_isolatedfilesystem_private_thunk_0_2;
48 } // namespace thunk
49 } // namespace ppapi