| 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 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "content/public/renderer/render_process_observer.h" | 15 #include "content/public/renderer/render_process_observer.h" |
| 16 #include "chrome/common/extensions/event_filter.h" | |
| 17 #include "chrome/common/extensions/extension_set.h" | 16 #include "chrome/common/extensions/extension_set.h" |
| 18 #include "chrome/common/extensions/features/feature.h" | 17 #include "chrome/common/extensions/features/feature.h" |
| 19 #include "chrome/renderer/extensions/chrome_v8_context.h" | 18 #include "chrome/renderer/extensions/chrome_v8_context.h" |
| 20 #include "chrome/renderer/extensions/chrome_v8_context_set.h" | 19 #include "chrome/renderer/extensions/chrome_v8_context_set.h" |
| 21 #include "chrome/renderer/extensions/v8_schema_registry.h" | 20 #include "chrome/renderer/extensions/v8_schema_registry.h" |
| 22 #include "chrome/renderer/resource_bundle_source_map.h" | 21 #include "chrome/renderer/resource_bundle_source_map.h" |
| 23 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
| 24 | 23 |
| 25 class ExtensionRequestSender; | 24 class ExtensionRequestSender; |
| 26 class GURL; | 25 class GURL; |
| 27 class ModuleSystem; | 26 class ModuleSystem; |
| 28 class URLPattern; | 27 class URLPattern; |
| 29 class UserScriptSlave; | 28 class UserScriptSlave; |
| 30 struct ExtensionMsg_Loaded_Params; | 29 struct ExtensionMsg_Loaded_Params; |
| 31 | 30 |
| 32 namespace extensions { | |
| 33 class FilteredEventRouter; | |
| 34 } | |
| 35 | |
| 36 namespace WebKit { | 31 namespace WebKit { |
| 37 class WebFrame; | 32 class WebFrame; |
| 38 } | 33 } |
| 39 | 34 |
| 40 namespace base { | 35 namespace base { |
| 41 class ListValue; | 36 class ListValue; |
| 42 } | 37 } |
| 43 | 38 |
| 44 namespace content { | 39 namespace content { |
| 45 class RenderThread; | 40 class RenderThread; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // them. | 251 // them. |
| 257 std::map<std::string, BindingInstaller> lazy_bindings_map_; | 252 std::map<std::string, BindingInstaller> lazy_bindings_map_; |
| 258 | 253 |
| 259 // Sends API requests to the extension host. | 254 // Sends API requests to the extension host. |
| 260 scoped_ptr<ExtensionRequestSender> request_sender_; | 255 scoped_ptr<ExtensionRequestSender> request_sender_; |
| 261 | 256 |
| 262 // The current channel. From VersionInfo::GetChannel(). | 257 // The current channel. From VersionInfo::GetChannel(). |
| 263 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. | 258 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. |
| 264 int chrome_channel_; | 259 int chrome_channel_; |
| 265 | 260 |
| 266 // Routes events to the appropriate listener taking into consideration event | |
| 267 // filters. | |
| 268 scoped_ptr<extensions::EventFilter> event_filter_; | |
| 269 | |
| 270 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 261 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
| 271 }; | 262 }; |
| 272 | 263 |
| 273 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 264 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| OLD | NEW |