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_manager_private_custom_bindings.h" | 5 #include "chrome/renderer/extensions/file_manager_private_custom_bindings.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
11 #include "extensions/renderer/script_context.h" | 10 #include "extensions/renderer/script_context.h" |
12 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
13 #include "third_party/WebKit/public/web/WebDOMFileSystem.h" | 12 #include "third_party/WebKit/public/web/WebDOMFileSystem.h" |
14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 13 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
15 | 14 |
16 namespace extensions { | 15 namespace extensions { |
17 | 16 |
18 FileManagerPrivateCustomBindings::FileManagerPrivateCustomBindings( | 17 FileManagerPrivateCustomBindings::FileManagerPrivateCustomBindings( |
19 ScriptContext* context) | 18 ScriptContext* context) |
(...skipping 17 matching lines...) Expand all Loading... |
37 DCHECK(webframe); | 36 DCHECK(webframe); |
38 args.GetReturnValue().Set( | 37 args.GetReturnValue().Set( |
39 blink::WebDOMFileSystem::create(webframe, | 38 blink::WebDOMFileSystem::create(webframe, |
40 blink::WebFileSystemTypeExternal, | 39 blink::WebFileSystemTypeExternal, |
41 blink::WebString::fromUTF8(name), | 40 blink::WebString::fromUTF8(name), |
42 GURL(root_url)) | 41 GURL(root_url)) |
43 .toV8Value(context()->v8_context()->Global(), args.GetIsolate())); | 42 .toV8Value(context()->v8_context()->Global(), args.GetIsolate())); |
44 } | 43 } |
45 | 44 |
46 } // namespace extensions | 45 } // namespace extensions |
OLD | NEW |