| 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_browser_handler_custom_bindings.h" | 5 #include "chrome/renderer/extensions/file_browser_handler_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" |
| 10 #include "build/build_config.h" |
| 11 #include "extensions/renderer/script_context.h" | 11 #include "extensions/renderer/script_context.h" |
| 12 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/public/web/WebDOMFileSystem.h" | 13 #include "third_party/WebKit/public/web/WebDOMFileSystem.h" |
| 14 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 14 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 15 #include "third_party/WebKit/public/web/WebScriptBindings.h" | 15 #include "third_party/WebKit/public/web/WebScriptBindings.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 FileBrowserHandlerCustomBindings::FileBrowserHandlerCustomBindings( | 19 FileBrowserHandlerCustomBindings::FileBrowserHandlerCustomBindings( |
| 20 ScriptContext* context) | 20 ScriptContext* context) |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const v8::FunctionCallbackInfo<v8::Value>& args) { | 69 const v8::FunctionCallbackInfo<v8::Value>& args) { |
| 70 CHECK(args.Length() == 1); | 70 CHECK(args.Length() == 1); |
| 71 CHECK(args[0]->IsObject()); | 71 CHECK(args[0]->IsObject()); |
| 72 const blink::WebURL& url = | 72 const blink::WebURL& url = |
| 73 blink::WebDOMFileSystem::createFileSystemURL(args[0]); | 73 blink::WebDOMFileSystem::createFileSystemURL(args[0]); |
| 74 args.GetReturnValue().Set( | 74 args.GetReturnValue().Set( |
| 75 blink::WebScriptBindings::toV8String(url.string(), args.GetIsolate())); | 75 blink::WebScriptBindings::toV8String(url.string(), args.GetIsolate())); |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace extensions | 78 } // namespace extensions |
| OLD | NEW |