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

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

Issue 298023009: Remove InstallTracker's extension load, unload observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and shutdown Created 6 years, 6 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 "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/prefs/pref_change_registrar.h" 9 #include "base/prefs/pref_change_registrar.h"
10 #include "base/scoped_observer.h" 10 #include "base/scoped_observer.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 private: 53 private:
54 void OnAppsReordered(); 54 void OnAppsReordered();
55 55
56 // content::NotificationObserver implementation. 56 // content::NotificationObserver implementation.
57 virtual void Observe(int type, 57 virtual void Observe(int type,
58 const content::NotificationSource& source, 58 const content::NotificationSource& source,
59 const content::NotificationDetails& details) OVERRIDE; 59 const content::NotificationDetails& details) OVERRIDE;
60 60
61 // ExtensionRegistryObserver implementation. 61 // ExtensionRegistryObserver implementation.
62 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
63 const Extension* extension) OVERRIDE;
64 virtual void OnExtensionUnloaded(
65 content::BrowserContext* browser_context,
66 const Extension* extension,
67 UnloadedExtensionInfo::Reason reason) OVERRIDE;
68 virtual void OnExtensionWillBeInstalled( 62 virtual void OnExtensionWillBeInstalled(
69 content::BrowserContext* browser_context, 63 content::BrowserContext* browser_context,
70 const Extension* extension, 64 const Extension* extension,
71 bool is_update, 65 bool is_update,
72 bool from_ephemeral, 66 bool from_ephemeral,
73 const std::string& old_name) OVERRIDE; 67 const std::string& old_name) OVERRIDE;
74 68
75 ObserverList<InstallObserver> observers_; 69 ObserverList<InstallObserver> observers_;
76 content::NotificationRegistrar registrar_; 70 content::NotificationRegistrar registrar_;
77 PrefChangeRegistrar pref_change_registrar_; 71 PrefChangeRegistrar pref_change_registrar_;
78 72
79 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 73 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
80 extension_registry_observer_; 74 extension_registry_observer_;
81 75
82 DISALLOW_COPY_AND_ASSIGN(InstallTracker); 76 DISALLOW_COPY_AND_ASSIGN(InstallTracker);
83 }; 77 };
84 78
85 } // namespace extensions 79 } // namespace extensions
86 80
87 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698