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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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) 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 18 matching lines...) Expand all
29 class ExtensionBrowserEventRouter : public TabStripModelObserver, 29 class ExtensionBrowserEventRouter : public TabStripModelObserver,
30 #if defined(TOOLKIT_VIEWS) 30 #if defined(TOOLKIT_VIEWS)
31 public views::WidgetFocusChangeListener, 31 public views::WidgetFocusChangeListener,
32 #elif defined(TOOLKIT_GTK) 32 #elif defined(TOOLKIT_GTK)
33 public ui::ActiveWindowWatcherX::Observer, 33 public ui::ActiveWindowWatcherX::Observer,
34 #endif 34 #endif
35 public BrowserList::Observer, 35 public BrowserList::Observer,
36 public NotificationObserver { 36 public NotificationObserver {
37 public: 37 public:
38 explicit ExtensionBrowserEventRouter(Profile* profile); 38 explicit ExtensionBrowserEventRouter(Profile* profile);
39 ~ExtensionBrowserEventRouter(); 39 virtual ~ExtensionBrowserEventRouter();
40 40
41 // Must be called once. Subsequent calls have no effect. 41 // Must be called once. Subsequent calls have no effect.
42 void Init(); 42 void Init();
43 43
44 // BrowserList::Observer 44 // BrowserList::Observer
45 virtual void OnBrowserAdded(const Browser* browser); 45 virtual void OnBrowserAdded(const Browser* browser);
46 virtual void OnBrowserRemoved(const Browser* browser); 46 virtual void OnBrowserRemoved(const Browser* browser);
47 virtual void OnBrowserSetLastActive(const Browser* browser); 47 virtual void OnBrowserSetLastActive(const Browser* browser);
48 48
49 #if defined(TOOLKIT_VIEWS) 49 #if defined(TOOLKIT_VIEWS)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 int focused_window_id_; 179 int focused_window_id_;
180 180
181 // The main profile (non-OTR) profile which will be used to send events not 181 // The main profile (non-OTR) profile which will be used to send events not
182 // associated with any browser. 182 // associated with any browser.
183 Profile* profile_; 183 Profile* profile_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter); 185 DISALLOW_COPY_AND_ASSIGN(ExtensionBrowserEventRouter);
186 }; 186 };
187 187
188 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_ 188 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSER_EVENT_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browser_actions_api.h ('k') | chrome/browser/extensions/extension_context_menu_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698