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 EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
6 #define EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 6 #define EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
24 #include "content/public/browser/render_process_host_observer.h" | 24 #include "content/public/browser/render_process_host_observer.h" |
25 #include "extensions/browser/event_listener_map.h" | 25 #include "extensions/browser/event_listener_map.h" |
26 #include "extensions/browser/extension_event_histogram_value.h" | 26 #include "extensions/browser/extension_event_histogram_value.h" |
27 #include "extensions/browser/extension_registry_observer.h" | 27 #include "extensions/browser/extension_registry_observer.h" |
28 #include "extensions/common/event_filtering_info.h" | 28 #include "extensions/common/event_filtering_info.h" |
29 #include "ipc/ipc_sender.h" | 29 #include "ipc/ipc_sender.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 class GURL; | 32 class GURL; |
33 class PrefService; | |
34 | 33 |
35 namespace content { | 34 namespace content { |
36 class BrowserContext; | 35 class BrowserContext; |
37 class RenderProcessHost; | 36 class RenderProcessHost; |
38 } | 37 } |
39 | 38 |
40 namespace extensions { | 39 namespace extensions { |
41 class ActivityLog; | |
42 class Extension; | 40 class Extension; |
43 class ExtensionHost; | 41 class ExtensionHost; |
44 class ExtensionPrefs; | 42 class ExtensionPrefs; |
45 class ExtensionRegistry; | 43 class ExtensionRegistry; |
46 | 44 |
47 struct Event; | 45 struct Event; |
48 struct EventDispatchInfo; | |
49 struct EventListenerInfo; | 46 struct EventListenerInfo; |
50 | 47 |
51 class EventRouter : public KeyedService, | 48 class EventRouter : public KeyedService, |
52 public content::NotificationObserver, | 49 public content::NotificationObserver, |
53 public ExtensionRegistryObserver, | 50 public ExtensionRegistryObserver, |
54 public EventListenerMap::Delegate, | 51 public EventListenerMap::Delegate, |
55 public content::RenderProcessHostObserver { | 52 public content::RenderProcessHostObserver { |
56 public: | 53 public: |
57 // These constants convey the state of our knowledge of whether we're in | 54 // These constants convey the state of our knowledge of whether we're in |
58 // a user-caused gesture as part of DispatchEvent. | 55 // a user-caused gesture as part of DispatchEvent. |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 const std::string event_name; | 426 const std::string event_name; |
430 | 427 |
431 const std::string extension_id; | 428 const std::string extension_id; |
432 const GURL listener_url; | 429 const GURL listener_url; |
433 content::BrowserContext* browser_context; | 430 content::BrowserContext* browser_context; |
434 }; | 431 }; |
435 | 432 |
436 } // namespace extensions | 433 } // namespace extensions |
437 | 434 |
438 #endif // EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 435 #endif // EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |