PPAPI: Generalize PPB_Ext_CrxFileSystem as PPB_IsolatedFileSystem
[chromium-blink-merge.git] / ppapi / thunk / ppb_isolated_file_system_private_api.h
blobbca233279fe6e5b665891f0acfdf8bcfc07b7fa6
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 #ifndef PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_
6 #define PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_
8 #include "base/memory/ref_counted.h"
9 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
10 #include "ppapi/shared_impl/singleton_resource_id.h"
11 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h"
14 namespace ppapi {
16 class TrackedCallback;
18 namespace thunk {
20 class PPAPI_THUNK_EXPORT PPB_IsolatedFileSystem_Private_API {
21 public:
22 virtual ~PPB_IsolatedFileSystem_Private_API() {}
24 virtual int32_t Open(PP_Instance instance,
25 PP_IsolatedFileSystemType_Private type,
26 PP_Resource* file_system,
27 scoped_refptr<TrackedCallback> callback) = 0;
29 static const SingletonResourceID kSingletonResourceID =
30 ISOLATED_FILESYSTEM_SINGLETON_ID;
33 } // namespace thunk
34 } // namespace ppapi
36 #endif // PPAPI_THUNK_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_API_H_