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

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

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROME_NOTIFICATION_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
12 12
13 class Browser; 13 class Browser;
14 14
15 namespace content { 15 namespace content {
16 class RenderProcessHost; 16 class RenderProcessHost;
17 } 17 }
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 // Observer for Chrome-specific notifications that need to be relayed to the 21 // Observer for Chrome-specific notifications that need to be relayed to the
22 // extensions module. 22 // extensions module.
23 class ChromeNotificationObserver : public content::NotificationObserver { 23 class ChromeNotificationObserver : public content::NotificationObserver {
24 public: 24 public:
25 ChromeNotificationObserver(); 25 ChromeNotificationObserver();
26 virtual ~ChromeNotificationObserver(); 26 ~ChromeNotificationObserver() override;
27 27
28 // Notification handlers: 28 // Notification handlers:
29 void OnRendererProcessCreated(content::RenderProcessHost* process); 29 void OnRendererProcessCreated(content::RenderProcessHost* process);
30 30
31 // content::NotificationObserver overrides: 31 // content::NotificationObserver overrides:
32 virtual void Observe(int type, 32 void Observe(int type,
33 const content::NotificationSource& source, 33 const content::NotificationSource& source,
34 const content::NotificationDetails& details) override; 34 const content::NotificationDetails& details) override;
35 35
36 private: 36 private:
37 content::NotificationRegistrar registrar_; 37 content::NotificationRegistrar registrar_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ChromeNotificationObserver); 39 DISALLOW_COPY_AND_ASSIGN(ChromeNotificationObserver);
40 }; 40 };
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_NOTIFICATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698