| 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/runtime_custom_bindings.h" | 5 #include "chrome/renderer/extensions/runtime_custom_bindings.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/common/extensions/extension_messages.h" | |
| 11 #include "chrome/renderer/extensions/api_activity_logger.h" | 10 #include "chrome/renderer/extensions/api_activity_logger.h" |
| 12 #include "chrome/renderer/extensions/chrome_v8_context.h" | 11 #include "chrome/renderer/extensions/chrome_v8_context.h" |
| 13 #include "chrome/renderer/extensions/dispatcher.h" | 12 #include "chrome/renderer/extensions/dispatcher.h" |
| 14 #include "chrome/renderer/extensions/extension_helper.h" | 13 #include "chrome/renderer/extensions/extension_helper.h" |
| 15 #include "content/public/renderer/render_view.h" | 14 #include "content/public/renderer/render_view.h" |
| 16 #include "content/public/renderer/v8_value_converter.h" | 15 #include "content/public/renderer/v8_value_converter.h" |
| 17 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
| 17 #include "extensions/common/extension_messages.h" |
| 18 #include "extensions/common/features/feature.h" | 18 #include "extensions/common/features/feature.h" |
| 19 #include "extensions/common/features/feature_provider.h" | 19 #include "extensions/common/features/feature_provider.h" |
| 20 #include "extensions/common/manifest.h" | 20 #include "extensions/common/manifest.h" |
| 21 #include "third_party/WebKit/public/web/WebDocument.h" | 21 #include "third_party/WebKit/public/web/WebDocument.h" |
| 22 #include "third_party/WebKit/public/web/WebFrame.h" | 22 #include "third_party/WebKit/public/web/WebFrame.h" |
| 23 #include "third_party/WebKit/public/web/WebView.h" | 23 #include "third_party/WebKit/public/web/WebView.h" |
| 24 | 24 |
| 25 using content::V8ValueConverter; | 25 using content::V8ValueConverter; |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 v8::Local<v8::Value> window = context->Global(); | 174 v8::Local<v8::Value> window = context->Global(); |
| 175 DCHECK(!window.IsEmpty()); | 175 DCHECK(!window.IsEmpty()); |
| 176 v8_views->Set(v8::Integer::New(args.GetIsolate(), v8_index++), window); | 176 v8_views->Set(v8::Integer::New(args.GetIsolate(), v8_index++), window); |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 args.GetReturnValue().Set(v8_views); | 180 args.GetReturnValue().Set(v8_views); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace extensions | 183 } // namespace extensions |
| OLD | NEW |