| 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/extension_custom_bindings.h" | 5 #include "chrome/renderer/extensions/extension_custom_bindings.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "chrome/renderer/extensions/dispatcher.h" | 13 #include "chrome/renderer/extensions/dispatcher.h" |
| 14 #include "chrome/renderer/extensions/extension_helper.h" | 14 #include "chrome/renderer/extensions/extension_helper.h" |
| 15 #include "content/public/renderer/render_view.h" | 15 #include "content/public/renderer/render_view.h" |
| 16 #include "content/public/renderer/v8_value_converter.h" | 16 #include "content/public/renderer/v8_value_converter.h" |
| 17 #include "extensions/common/view_type.h" | 17 #include "extensions/common/view_type.h" |
| 18 #include "grit/renderer_resources.h" | 18 #include "grit/renderer_resources.h" |
| 19 #include "third_party/WebKit/public/web/WebFrame.h" | 19 #include "third_party/WebKit/public/web/WebFrame.h" |
| 20 #include "third_party/WebKit/public/web/WebView.h" | 20 #include "third_party/WebKit/public/web/WebView.h" |
| 21 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
| 22 #include "webkit/glue/webkit_glue.h" | |
| 23 | 22 |
| 24 namespace extensions { | 23 namespace extensions { |
| 25 | 24 |
| 26 namespace { | 25 namespace { |
| 27 | 26 |
| 28 } // namespace | 27 } // namespace |
| 29 | 28 |
| 30 ExtensionCustomBindings::ExtensionCustomBindings(Dispatcher* dispatcher, | 29 ExtensionCustomBindings::ExtensionCustomBindings(Dispatcher* dispatcher, |
| 31 ChromeV8Context* context) | 30 ChromeV8Context* context) |
| 32 : ChromeV8Extension(dispatcher, context) { | 31 : ChromeV8Extension(dispatcher, context) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 v8::Local<v8::Value> window = context->Global(); | 86 v8::Local<v8::Value> window = context->Global(); |
| 88 DCHECK(!window.IsEmpty()); | 87 DCHECK(!window.IsEmpty()); |
| 89 v8_views->Set(v8::Integer::New(v8_index++), window); | 88 v8_views->Set(v8::Integer::New(v8_index++), window); |
| 90 } | 89 } |
| 91 } | 90 } |
| 92 | 91 |
| 93 args.GetReturnValue().Set(v8_views); | 92 args.GetReturnValue().Set(v8_views); |
| 94 } | 93 } |
| 95 | 94 |
| 96 } // namespace extensions | 95 } // namespace extensions |
| OLD | NEW |