blob: 8637326cda5bd987106ad471e3e677829dceca21 [file] [log] [blame]
[email protected]701a94e2014-04-17 04:37:371// Copyright 2014 The Chromium Authors. All rights reserved.
[email protected]7bc8299d2012-06-13 09:18:292// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]701a94e2014-04-17 04:37:375#ifndef EXTENSIONS_RENDERER_FILE_SYSTEM_NATIVES_H_
6#define EXTENSIONS_RENDERER_FILE_SYSTEM_NATIVES_H_
[email protected]7bc8299d2012-06-13 09:18:297
8#include "base/compiler_specific.h"
[email protected]f55c90ee62014-04-12 00:50:039#include "extensions/renderer/object_backed_native_handler.h"
[email protected]7bc8299d2012-06-13 09:18:2910
11namespace extensions {
[email protected]701a94e2014-04-17 04:37:3712class ScriptContext;
[email protected]7bc8299d2012-06-13 09:18:2913
14// Custom bindings for the nativeFileSystem API.
[email protected]4f1633f2013-03-09 14:26:2415class FileSystemNatives : public ObjectBackedNativeHandler {
[email protected]7bc8299d2012-06-13 09:18:2916 public:
[email protected]701a94e2014-04-17 04:37:3717 explicit FileSystemNatives(ScriptContext* context);
[email protected]7bc8299d2012-06-13 09:18:2918
19 private:
[email protected]d8c5fbb2013-06-14 11:35:2520 void GetFileEntry(const v8::FunctionCallbackInfo<v8::Value>& args);
21 void GetIsolatedFileSystem(const v8::FunctionCallbackInfo<v8::Value>& args);
22 void CrackIsolatedFileSystemName(
23 const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]ada24fd2013-11-08 06:15:0824 // Constructs a DOMError object to be used in JavaScript.
25 void GetDOMError(const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]4f1633f2013-03-09 14:26:2426
[email protected]7bc8299d2012-06-13 09:18:2927 DISALLOW_COPY_AND_ASSIGN(FileSystemNatives);
28};
29
30} // namespace extensions
31
[email protected]701a94e2014-04-17 04:37:3732#endif // EXTENSIONS_RENDERER_FILE_SYSTEM_NATIVES_H_