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_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "chrome/browser/extensions/api/tabs/tabs.h" | 13 #include "chrome/browser/extensions/api/tabs/tabs.h" |
14 #include "chrome/browser/extensions/event_router.h" | 14 #include "chrome/browser/extensions/event_router.h" |
15 #include "chrome/browser/extensions/extension_toolbar_model.h" | 15 #include "chrome/browser/extensions/extension_toolbar_model.h" |
16 #include "chrome/browser/ui/browser_list_observer.h" | 16 #include "chrome/browser/ui/browser_list_observer.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 | 19 |
| 20 class ExtensionAction; |
| 21 |
20 namespace content { | 22 namespace content { |
21 class WebContents; | 23 class WebContents; |
22 } | 24 } |
23 | 25 |
24 namespace extensions { | 26 namespace extensions { |
25 | 27 |
26 // The BrowserEventRouter listens to Browser window & tab events | 28 // The BrowserEventRouter listens to Browser window & tab events |
27 // and routes them to listeners inside extension process renderers. | 29 // and routes them to listeners inside extension process renderers. |
28 // BrowserEventRouter listens to *all* events, but will only route | 30 // BrowserEventRouter listens to *all* events, but will only route |
29 // events from windows/tabs within a profile to extension processes in the same | 31 // events from windows/tabs within a profile to extension processes in the same |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 227 |
226 // The main profile that owns this event router. | 228 // The main profile that owns this event router. |
227 Profile* profile_; | 229 Profile* profile_; |
228 | 230 |
229 DISALLOW_COPY_AND_ASSIGN(BrowserEventRouter); | 231 DISALLOW_COPY_AND_ASSIGN(BrowserEventRouter); |
230 }; | 232 }; |
231 | 233 |
232 } // namespace extensions | 234 } // namespace extensions |
233 | 235 |
234 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ | 236 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EVENT_ROUTER_H_ |
OLD | NEW |