blob: 4cec86a9214f438c149504846b5aa273d3104664 [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"
avi2d124c02015-12-23 06:36:429#include "base/macros.h"
[email protected]f55c90ee62014-04-12 00:50:0310#include "extensions/renderer/object_backed_native_handler.h"
[email protected]7bc8299d2012-06-13 09:18:2911
12namespace extensions {
[email protected]701a94e2014-04-17 04:37:3713class ScriptContext;
[email protected]7bc8299d2012-06-13 09:18:2914
15// Custom bindings for the nativeFileSystem API.
[email protected]4f1633f2013-03-09 14:26:2416class FileSystemNatives : public ObjectBackedNativeHandler {
[email protected]7bc8299d2012-06-13 09:18:2917 public:
[email protected]701a94e2014-04-17 04:37:3718 explicit FileSystemNatives(ScriptContext* context);
[email protected]7bc8299d2012-06-13 09:18:2919
Devlin Cronind9ea8342018-01-27 06:00:0420 // ObjectBackedNativeHandler:
21 void AddRoutes() override;
22
[email protected]7bc8299d2012-06-13 09:18:2923 private:
[email protected]d8c5fbb2013-06-14 11:35:2524 void GetFileEntry(const v8::FunctionCallbackInfo<v8::Value>& args);
25 void GetIsolatedFileSystem(const v8::FunctionCallbackInfo<v8::Value>& args);
26 void CrackIsolatedFileSystemName(
27 const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]4f1633f2013-03-09 14:26:2428
[email protected]7bc8299d2012-06-13 09:18:2929 DISALLOW_COPY_AND_ASSIGN(FileSystemNatives);
30};
31
32} // namespace extensions
33
[email protected]701a94e2014-04-17 04:37:3734#endif // EXTENSIONS_RENDERER_FILE_SYSTEM_NATIVES_H_