Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / renderer / isolated_file_system.h
1 // Copyright (c) 2014 Intel Corporation. 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.
4
5 #ifndef XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_
6 #define XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_
7
8 #include "xwalk/extensions/renderer/xwalk_module_system.h"
9
10 namespace xwalk {
11 namespace extensions {
12
13 class XWalkModuleSystem;
14
15 class IsolatedFileSystem: public xwalk::extensions::XWalkNativeModule {
16  public:
17   IsolatedFileSystem();
18   virtual ~IsolatedFileSystem();
19
20  private:
21   v8::Handle<v8::Object> NewInstance() override;
22   static void GetIsolatedFileSystem(const v8::FunctionCallbackInfo<v8::Value>&);
23
24   v8::Persistent<v8::ObjectTemplate> object_template_;
25   v8::Persistent<v8::Object> function_data_;
26 };
27
28 }  // namespace extensions
29 }  // namespace xwalk
30
31 #endif  // XWALK_RUNTIME_RENDERER_ISOLATED_FILE_SYSTEM_H_