summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/extension_dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/extensions/extension_dispatcher.h')
-rw-r--r--chrome/renderer/extensions/extension_dispatcher.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/extension_dispatcher.h b/chrome/renderer/extensions/extension_dispatcher.h
index ea2f9c1..4947f48 100644
--- a/chrome/renderer/extensions/extension_dispatcher.h
+++ b/chrome/renderer/extensions/extension_dispatcher.h
@@ -13,6 +13,7 @@
#include "base/shared_memory.h"
#include "base/timer.h"
#include "content/public/renderer/render_process_observer.h"
+#include "chrome/common/extensions/event_filter.h"
#include "chrome/common/extensions/extension_set.h"
#include "chrome/common/extensions/features/feature.h"
#include "chrome/renderer/extensions/chrome_v8_context.h"
@@ -28,6 +29,10 @@ class URLPattern;
class UserScriptSlave;
struct ExtensionMsg_Loaded_Params;
+namespace extensions {
+class FilteredEventRouter;
+}
+
namespace WebKit {
class WebFrame;
}
@@ -258,6 +263,10 @@ class ExtensionDispatcher : public content::RenderProcessObserver {
// TODO(aa): Remove when we can restrict non-permission APIs to dev-only.
int chrome_channel_;
+ // Routes events to the appropriate listener taking into consideration event
+ // filters.
+ scoped_ptr<extensions::EventFilter> event_filter_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
};