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

Side by Side Diff: chrome/browser/extensions/extension_browser_event_router.h

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void RegisterForBrowserNotifications(const Browser* browser); 115 void RegisterForBrowserNotifications(const Browser* browser);
116 116
117 // Register ourselves to receive the various notifications we are interested 117 // Register ourselves to receive the various notifications we are interested
118 // in for a tab. 118 // in for a tab.
119 void RegisterForTabNotifications(TabContents* contents); 119 void RegisterForTabNotifications(TabContents* contents);
120 120
121 // Removes notifications added in RegisterForTabNotifications. 121 // Removes notifications added in RegisterForTabNotifications.
122 void UnregisterForTabNotifications(TabContents* contents); 122 void UnregisterForTabNotifications(TabContents* contents);
123 123
124 ExtensionBrowserEventRouter(); 124 ExtensionBrowserEventRouter();
125 ~ExtensionBrowserEventRouter();
125 friend struct DefaultSingletonTraits<ExtensionBrowserEventRouter>; 126 friend struct DefaultSingletonTraits<ExtensionBrowserEventRouter>;
126 127
127 NotificationRegistrar registrar_; 128 NotificationRegistrar registrar_;
128 129
129 bool initialized_; 130 bool initialized_;
130 131
131 // Maintain some information about known tabs, so we can: 132 // Maintain some information about known tabs, so we can:
132 // 133 //
133 // - distinguish between tab creation and tab insertion 134 // - distinguish between tab creation and tab insertion
134 // - not send tab-detached after tab-removed 135 // - not send tab-detached after tab-removed
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 int focused_window_id_; 171 int focused_window_id_;
171 172
172 // The main profile (non-OTR) profile which will be used to send events not 173 // The main profile (non-OTR) profile which will be used to send events not
173 // associated with any browser. 174 // associated with any browser.
174 Profile* profile_; 175 Profile* profile_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); 177 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter);
177 }; 178 };
178 179
179 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ 180 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698