| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 // The profile the currently focused window belongs to; either the main or | 207 // The profile the currently focused window belongs to; either the main or |
| 208 // incognito profile or NULL (none of the above). We remember this in order | 208 // incognito profile or NULL (none of the above). We remember this in order |
| 209 // to correctly handle focus changes between non-OTR and OTR windows. | 209 // to correctly handle focus changes between non-OTR and OTR windows. |
| 210 Profile* focused_profile_; | 210 Profile* focused_profile_; |
| 211 | 211 |
| 212 // The currently focused window. We keep this so as to avoid sending multiple | 212 // The currently focused window. We keep this so as to avoid sending multiple |
| 213 // windows.onFocusChanged events with the same windowId. | 213 // windows.onFocusChanged events with the same windowId. |
| 214 int focused_window_id_; | 214 int focused_window_id_; |
| 215 | 215 |
| 216 class DownloadManagerObserver; |
| 217 friend class DownloadManagerObserver; |
| 218 scoped_ptr<DownloadManagerObserver> download_manager_observer_; |
| 219 |
| 216 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); | 220 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); |
| 217 }; | 221 }; |
| 218 | 222 |
| 219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ | 223 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ |
| OLD | NEW |