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/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/Source/WebKit/chromium/public/WebFrame.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 21 #include "v8/include/v8.h" |
21 #include "webkit/glue/webkit_glue.h" | 22 #include "webkit/glue/webkit_glue.h" |
22 #include "v8/include/v8.h" | |
23 | 23 |
24 namespace extensions { | 24 namespace extensions { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 } // namespace | 28 } // namespace |
29 | 29 |
30 ExtensionCustomBindings::ExtensionCustomBindings(Dispatcher* dispatcher, | 30 ExtensionCustomBindings::ExtensionCustomBindings(Dispatcher* dispatcher, |
31 ChromeV8Context* context) | 31 ChromeV8Context* context) |
32 : ChromeV8Extension(dispatcher, context) { | 32 : ChromeV8Extension(dispatcher, context) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 v8::Local<v8::Value> window = context->Global(); | 87 v8::Local<v8::Value> window = context->Global(); |
88 DCHECK(!window.IsEmpty()); | 88 DCHECK(!window.IsEmpty()); |
89 v8_views->Set(v8::Integer::New(v8_index++), window); | 89 v8_views->Set(v8::Integer::New(v8_index++), window); |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 return v8_views; | 93 return v8_views; |
94 } | 94 } |
95 | 95 |
96 } // namespace extensions | 96 } // namespace extensions |
OLD | NEW |