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

Side by Side Diff: apps/app_lifetime_monitor.h

Issue 641963002: Replace OVERRIDE and FINAL with override and final in src/apps (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
« no previous file with comments | « no previous file | apps/app_lifetime_monitor_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 APPS_APP_LIFETIME_MONITOR_H_ 5 #ifndef APPS_APP_LIFETIME_MONITOR_H_
6 #define APPS_APP_LIFETIME_MONITOR_H_ 6 #define APPS_APP_LIFETIME_MONITOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 explicit AppLifetimeMonitor(Profile* profile); 51 explicit AppLifetimeMonitor(Profile* profile);
52 virtual ~AppLifetimeMonitor(); 52 virtual ~AppLifetimeMonitor();
53 53
54 void AddObserver(Observer* observer); 54 void AddObserver(Observer* observer);
55 void RemoveObserver(Observer* observer); 55 void RemoveObserver(Observer* observer);
56 56
57 private: 57 private:
58 // content::NotificationObserver overrides: 58 // content::NotificationObserver overrides:
59 virtual void Observe(int type, 59 virtual void Observe(int type,
60 const content::NotificationSource& source, 60 const content::NotificationSource& source,
61 const content::NotificationDetails& details) OVERRIDE; 61 const content::NotificationDetails& details) override;
62 62
63 // extensions::AppWindowRegistry::Observer overrides: 63 // extensions::AppWindowRegistry::Observer overrides:
64 virtual void OnAppWindowRemoved(extensions::AppWindow* app_window) OVERRIDE; 64 virtual void OnAppWindowRemoved(extensions::AppWindow* app_window) override;
65 virtual void OnAppWindowHidden(extensions::AppWindow* app_window) OVERRIDE; 65 virtual void OnAppWindowHidden(extensions::AppWindow* app_window) override;
66 virtual void OnAppWindowShown(extensions::AppWindow* app_window) OVERRIDE; 66 virtual void OnAppWindowShown(extensions::AppWindow* app_window) override;
67 67
68 // KeyedService overrides: 68 // KeyedService overrides:
69 virtual void Shutdown() OVERRIDE; 69 virtual void Shutdown() override;
70 70
71 bool HasVisibleAppWindows(extensions::AppWindow* app_window) const; 71 bool HasVisibleAppWindows(extensions::AppWindow* app_window) const;
72 72
73 void NotifyAppStart(const std::string& app_id); 73 void NotifyAppStart(const std::string& app_id);
74 void NotifyAppActivated(const std::string& app_id); 74 void NotifyAppActivated(const std::string& app_id);
75 void NotifyAppDeactivated(const std::string& app_id); 75 void NotifyAppDeactivated(const std::string& app_id);
76 void NotifyAppStop(const std::string& app_id); 76 void NotifyAppStop(const std::string& app_id);
77 void NotifyChromeTerminating(); 77 void NotifyChromeTerminating();
78 78
79 content::NotificationRegistrar registrar_; 79 content::NotificationRegistrar registrar_;
80 Profile* profile_; 80 Profile* profile_;
81 ObserverList<Observer> observers_; 81 ObserverList<Observer> observers_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(AppLifetimeMonitor); 83 DISALLOW_COPY_AND_ASSIGN(AppLifetimeMonitor);
84 }; 84 };
85 85
86 } // namespace apps 86 } // namespace apps
87 87
88 #endif // APPS_APP_LIFETIME_MONITOR_H_ 88 #endif // APPS_APP_LIFETIME_MONITOR_H_
OLDNEW
« no previous file with comments | « no previous file | apps/app_lifetime_monitor_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698