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

Side by Side Diff: chrome/browser/apps/ephemeral_app_service.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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_APPS_EPHEMERAL_APP_SERVICE_H_ 5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // The maximum number of ephemeral apps to keep cached. Excess may be removed. 56 // The maximum number of ephemeral apps to keep cached. Excess may be removed.
57 static const int kMaxEphemeralAppsCount; 57 static const int kMaxEphemeralAppsCount;
58 58
59 private: 59 private:
60 // A map used to order the ephemeral apps by their last launch time. 60 // A map used to order the ephemeral apps by their last launch time.
61 typedef std::multimap<base::Time, std::string> LaunchTimeAppMap; 61 typedef std::multimap<base::Time, std::string> LaunchTimeAppMap;
62 62
63 // content::NotificationObserver implementation. 63 // content::NotificationObserver implementation.
64 virtual void Observe(int type, 64 virtual void Observe(int type,
65 const content::NotificationSource& source, 65 const content::NotificationSource& source,
66 const content::NotificationDetails& details) OVERRIDE; 66 const content::NotificationDetails& details) override;
67 67
68 // extensions::ExtensionRegistryObserver. 68 // extensions::ExtensionRegistryObserver.
69 virtual void OnExtensionWillBeInstalled( 69 virtual void OnExtensionWillBeInstalled(
70 content::BrowserContext* browser_context, 70 content::BrowserContext* browser_context,
71 const extensions::Extension* extension, 71 const extensions::Extension* extension,
72 bool is_update, 72 bool is_update,
73 bool from_ephemeral, 73 bool from_ephemeral,
74 const std::string& old_name) OVERRIDE; 74 const std::string& old_name) override;
75 virtual void OnExtensionUninstalled( 75 virtual void OnExtensionUninstalled(
76 content::BrowserContext* browser_context, 76 content::BrowserContext* browser_context,
77 const extensions::Extension* extension, 77 const extensions::Extension* extension,
78 extensions::UninstallReason reason) OVERRIDE; 78 extensions::UninstallReason reason) override;
79 79
80 // apps::AppLifetimeMonitor::Observer implementation. 80 // apps::AppLifetimeMonitor::Observer implementation.
81 virtual void OnAppStop(Profile* profile, const std::string& app_id) OVERRIDE; 81 virtual void OnAppStop(Profile* profile, const std::string& app_id) override;
82 virtual void OnChromeTerminating() OVERRIDE; 82 virtual void OnChromeTerminating() override;
83 83
84 void Init(); 84 void Init();
85 void InitEphemeralAppCount(); 85 void InitEphemeralAppCount();
86 86
87 void DisableEphemeralApp(const std::string& app_id); 87 void DisableEphemeralApp(const std::string& app_id);
88 void DisableEphemeralAppsOnStartup(); 88 void DisableEphemeralAppsOnStartup();
89 89
90 void HandleEphemeralAppPromoted(const extensions::Extension* app); 90 void HandleEphemeralAppPromoted(const extensions::Extension* app);
91 91
92 // Garbage collect ephemeral apps. 92 // Garbage collect ephemeral apps.
(...skipping 23 matching lines...) Expand all
116 116
117 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_; 117 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_;
118 118
119 friend class EphemeralAppServiceTest; 119 friend class EphemeralAppServiceTest;
120 friend class EphemeralAppServiceBrowserTest; 120 friend class EphemeralAppServiceBrowserTest;
121 121
122 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService); 122 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService);
123 }; 123 };
124 124
125 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 125 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_launcher_browsertest.cc ('k') | chrome/browser/apps/ephemeral_app_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698