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

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

Issue 624153002: replace OVERRIDE and FINAL with override and 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_INSTALL_TRACKER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_
6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void OnDownloadProgress(const std::string& extension_id, 61 void OnDownloadProgress(const std::string& extension_id,
62 int percent_downloaded); 62 int percent_downloaded);
63 void OnBeginCrxInstall(const std::string& extension_id); 63 void OnBeginCrxInstall(const std::string& extension_id);
64 void OnFinishCrxInstall(const std::string& extension_id, bool success); 64 void OnFinishCrxInstall(const std::string& extension_id, bool success);
65 void OnInstallFailure(const std::string& extension_id); 65 void OnInstallFailure(const std::string& extension_id);
66 66
67 // NOTE(limasdf): For extension [un]load and [un]installed, use 67 // NOTE(limasdf): For extension [un]load and [un]installed, use
68 // ExtensionRegistryObserver. 68 // ExtensionRegistryObserver.
69 69
70 // Overriddes for KeyedService. 70 // Overriddes for KeyedService.
71 virtual void Shutdown() OVERRIDE; 71 virtual void Shutdown() override;
72 72
73 private: 73 private:
74 void OnAppsReordered(); 74 void OnAppsReordered();
75 75
76 // content::NotificationObserver implementation. 76 // content::NotificationObserver implementation.
77 virtual void Observe(int type, 77 virtual void Observe(int type,
78 const content::NotificationSource& source, 78 const content::NotificationSource& source,
79 const content::NotificationDetails& details) OVERRIDE; 79 const content::NotificationDetails& details) override;
80 80
81 // ExtensionRegistryObserver implementation. 81 // ExtensionRegistryObserver implementation.
82 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 82 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
83 const Extension* extension, 83 const Extension* extension,
84 bool is_update) OVERRIDE; 84 bool is_update) override;
85 85
86 // Maps extension id to the details of an active install. 86 // Maps extension id to the details of an active install.
87 typedef std::map<std::string, ActiveInstallData> ActiveInstallsMap; 87 typedef std::map<std::string, ActiveInstallData> ActiveInstallsMap;
88 ActiveInstallsMap active_installs_; 88 ActiveInstallsMap active_installs_;
89 89
90 ObserverList<InstallObserver> observers_; 90 ObserverList<InstallObserver> observers_;
91 content::NotificationRegistrar registrar_; 91 content::NotificationRegistrar registrar_;
92 PrefChangeRegistrar pref_change_registrar_; 92 PrefChangeRegistrar pref_change_registrar_;
93 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 93 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
94 extension_registry_observer_; 94 extension_registry_observer_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(InstallTracker); 96 DISALLOW_COPY_AND_ASSIGN(InstallTracker);
97 }; 97 };
98 98
99 } // namespace extensions 99 } // namespace extensions
100 100
101 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_ 101 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/install_signer.cc ('k') | chrome/browser/extensions/install_tracker_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698