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/Platform/chromium/public/WebFileSystem.h" | 15 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h
" | 16 #include "third_party/WebKit/public/platform/WebFileSystemType.h" |
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
19 #include "webkit/fileapi/file_system_types.h" | 19 #include "webkit/fileapi/file_system_types.h" |
20 #include "webkit/fileapi/file_system_util.h" | 20 #include "webkit/fileapi/file_system_util.h" |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 | 23 |
24 FileSystemNatives::FileSystemNatives(v8::Handle<v8::Context> context) | 24 FileSystemNatives::FileSystemNatives(v8::Handle<v8::Context> context) |
25 : ObjectBackedNativeHandler(context) { | 25 : ObjectBackedNativeHandler(context) { |
26 RouteFunction("GetFileEntry", | 26 RouteFunction("GetFileEntry", |
27 base::Bind(&FileSystemNatives::GetFileEntry, base::Unretained(this))); | 27 base::Bind(&FileSystemNatives::GetFileEntry, base::Unretained(this))); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 DCHECK(webframe); | 92 DCHECK(webframe); |
93 return webframe->createFileEntry( | 93 return webframe->createFileEntry( |
94 type, | 94 type, |
95 WebKit::WebString::fromUTF8(file_system_name), | 95 WebKit::WebString::fromUTF8(file_system_name), |
96 WebKit::WebString::fromUTF8(file_system_root_url), | 96 WebKit::WebString::fromUTF8(file_system_root_url), |
97 WebKit::WebString::fromUTF8(file_path_string), | 97 WebKit::WebString::fromUTF8(file_path_string), |
98 is_directory); | 98 is_directory); |
99 } | 99 } |
100 | 100 |
101 } // namespace extensions | 101 } // namespace extensions |
OLD | NEW |