OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/renderer/extensions/file_system_natives.h" | 5 #include "chrome/renderer/extensions/file_system_natives.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
12 #include "chrome/renderer/extensions/user_script_slave.h" | 12 #include "chrome/renderer/extensions/user_script_slave.h" |
13 #include "extensions/common/constants.h" | 13 #include "extensions/common/constants.h" |
14 #include "grit/renderer_resources.h" | 14 #include "grit/renderer_resources.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
18 #include "webkit/fileapi/file_system_types.h" | 18 #include "webkit/fileapi/file_system_types.h" |
19 #include "webkit/fileapi/file_system_util.h" | 19 #include "webkit/fileapi/file_system_util.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 static v8::Handle<v8::Value> GetIsolatedFileSystem( | 23 static v8::Handle<v8::Value> GetIsolatedFileSystem( |
24 const v8::Arguments& args) { | 24 const v8::Arguments& args) { |
25 DCHECK(args.Length() == 1 || args.Length() == 2); | 25 DCHECK(args.Length() == 1 || args.Length() == 2); |
26 DCHECK(args[0]->IsString()); | 26 DCHECK(args[0]->IsString()); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } // namespace | 59 } // namespace |
60 | 60 |
61 namespace extensions { | 61 namespace extensions { |
62 | 62 |
63 FileSystemNatives::FileSystemNatives() | 63 FileSystemNatives::FileSystemNatives() |
64 : ChromeV8Extension(NULL) { | 64 : ChromeV8Extension(NULL) { |
65 RouteStaticFunction("GetIsolatedFileSystem", &GetIsolatedFileSystem); | 65 RouteStaticFunction("GetIsolatedFileSystem", &GetIsolatedFileSystem); |
66 } | 66 } |
67 | 67 |
68 } // namespace extensions | 68 } // namespace extensions |
OLD | NEW |