| 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/event_bindings.h" | 5 #include "chrome/renderer/extensions/event_bindings.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "chrome/common/extensions/extension_messages.h" | |
| 18 #include "chrome/common/extensions/value_counter.h" | 17 #include "chrome/common/extensions/value_counter.h" |
| 19 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 20 #include "chrome/renderer/extensions/chrome_v8_context.h" | 19 #include "chrome/renderer/extensions/chrome_v8_context.h" |
| 21 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 20 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
| 22 #include "chrome/renderer/extensions/chrome_v8_extension.h" | 21 #include "chrome/renderer/extensions/chrome_v8_extension.h" |
| 23 #include "chrome/renderer/extensions/dispatcher.h" | 22 #include "chrome/renderer/extensions/dispatcher.h" |
| 24 #include "chrome/renderer/extensions/extension_helper.h" | 23 #include "chrome/renderer/extensions/extension_helper.h" |
| 25 #include "chrome/renderer/extensions/user_script_slave.h" | 24 #include "chrome/renderer/extensions/user_script_slave.h" |
| 26 #include "content/public/renderer/render_thread.h" | 25 #include "content/public/renderer/render_thread.h" |
| 27 #include "content/public/renderer/render_view.h" | 26 #include "content/public/renderer/render_view.h" |
| 28 #include "content/public/renderer/v8_value_converter.h" | 27 #include "content/public/renderer/v8_value_converter.h" |
| 29 #include "extensions/common/event_filter.h" | 28 #include "extensions/common/event_filter.h" |
| 30 #include "extensions/common/extension.h" | 29 #include "extensions/common/extension.h" |
| 30 #include "extensions/common/extension_messages.h" |
| 31 #include "extensions/common/manifest_handlers/background_info.h" | 31 #include "extensions/common/manifest_handlers/background_info.h" |
| 32 #include "extensions/common/view_type.h" | 32 #include "extensions/common/view_type.h" |
| 33 #include "grit/renderer_resources.h" | 33 #include "grit/renderer_resources.h" |
| 34 #include "third_party/WebKit/public/platform/WebURL.h" | 34 #include "third_party/WebKit/public/platform/WebURL.h" |
| 35 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 35 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 36 #include "third_party/WebKit/public/web/WebDocument.h" | 36 #include "third_party/WebKit/public/web/WebDocument.h" |
| 37 #include "third_party/WebKit/public/web/WebFrame.h" | 37 #include "third_party/WebKit/public/web/WebFrame.h" |
| 38 #include "third_party/WebKit/public/web/WebView.h" | 38 #include "third_party/WebKit/public/web/WebView.h" |
| 39 #include "url/gurl.h" | 39 #include "url/gurl.h" |
| 40 #include "v8/include/v8.h" | 40 #include "v8/include/v8.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 } // namespace | 330 } // namespace |
| 331 | 331 |
| 332 // static | 332 // static |
| 333 ChromeV8Extension* EventBindings::Create(Dispatcher* dispatcher, | 333 ChromeV8Extension* EventBindings::Create(Dispatcher* dispatcher, |
| 334 ChromeV8Context* context) { | 334 ChromeV8Context* context) { |
| 335 return new ExtensionImpl(dispatcher, context); | 335 return new ExtensionImpl(dispatcher, context); |
| 336 } | 336 } |
| 337 | 337 |
| 338 } // namespace extensions | 338 } // namespace extensions |
| OLD | NEW |