Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/renderer/extensions/extension_dispatcher.h

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split out event_filter changes Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
16 #include "chrome/common/extensions/extension_set.h" 17 #include "chrome/common/extensions/extension_set.h"
17 #include "chrome/common/extensions/feature.h" 18 #include "chrome/common/extensions/feature.h"
18 #include "chrome/renderer/extensions/chrome_v8_context.h" 19 #include "chrome/renderer/extensions/chrome_v8_context.h"
19 #include "chrome/renderer/extensions/chrome_v8_context_set.h" 20 #include "chrome/renderer/extensions/chrome_v8_context_set.h"
20 #include "chrome/renderer/extensions/v8_schema_registry.h" 21 #include "chrome/renderer/extensions/v8_schema_registry.h"
21 #include "chrome/renderer/resource_bundle_source_map.h" 22 #include "chrome/renderer/resource_bundle_source_map.h"
22 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
23 24
24 class ExtensionRequestSender; 25 class ExtensionRequestSender;
25 class GURL; 26 class GURL;
26 class ModuleSystem; 27 class ModuleSystem;
27 class URLPattern; 28 class URLPattern;
28 class UserScriptSlave; 29 class UserScriptSlave;
29 struct ExtensionMsg_Loaded_Params; 30 struct ExtensionMsg_Loaded_Params;
30 31
32 namespace extensions {
33 class FilteredEventRouter;
34 }
35
31 namespace WebKit { 36 namespace WebKit {
32 class WebFrame; 37 class WebFrame;
33 } 38 }
34 39
35 namespace base { 40 namespace base {
36 class ListValue; 41 class ListValue;
37 } 42 }
38 43
39 namespace content { 44 namespace content {
40 class RenderThread; 45 class RenderThread;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // them. 245 // them.
241 std::map<std::string, BindingInstaller> lazy_bindings_map_; 246 std::map<std::string, BindingInstaller> lazy_bindings_map_;
242 247
243 // Sends API requests to the extension host. 248 // Sends API requests to the extension host.
244 scoped_ptr<ExtensionRequestSender> request_sender_; 249 scoped_ptr<ExtensionRequestSender> request_sender_;
245 250
246 // The current channel. From VersionInfo::GetChannel(). 251 // The current channel. From VersionInfo::GetChannel().
247 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. 252 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only.
248 int chrome_channel_; 253 int chrome_channel_;
249 254
255 // Routes events to the appropriate listener taking into consideration event
256 // filters.
257 scoped_ptr<extensions::EventFilter> event_filter_;
258
250 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); 259 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
251 }; 260 };
252 261
253 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 262 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698