Roll Syzygy deps to 0.8.6.4.
[chromium-blink-merge.git] / ppapi / thunk / ppb_isolated_file_system_private_thunk.cc
blob4e1940a64c93ffac3dcf62092ed2c79ee8b26759
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 modified Tue Dec 3
6 // 11:01:20 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(
31 enter.functions()->Open(instance, type, file_system, enter.callback()));
34 const PPB_IsolatedFileSystem_Private_0_2
35 g_ppb_isolatedfilesystem_private_thunk_0_2 = {&Open};
37 } // namespace
39 PPAPI_THUNK_EXPORT const PPB_IsolatedFileSystem_Private_0_2*
40 GetPPB_IsolatedFileSystem_Private_0_2_Thunk() {
41 return &g_ppb_isolatedfilesystem_private_thunk_0_2;
44 } // namespace thunk
45 } // namespace ppapi