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

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

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 62 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
63 const Extension* extension) OVERRIDE; 63 const Extension* extension) OVERRIDE;
64 virtual void OnExtensionUnloaded( 64 virtual void OnExtensionUnloaded(
65 content::BrowserContext* browser_context, 65 content::BrowserContext* browser_context,
66 const Extension* extension, 66 const Extension* extension,
67 UnloadedExtensionInfo::Reason reason) OVERRIDE; 67 UnloadedExtensionInfo::Reason reason) OVERRIDE;
68 virtual void OnExtensionWillBeInstalled( 68 virtual void OnExtensionWillBeInstalled(
69 content::BrowserContext* browser_context, 69 content::BrowserContext* browser_context,
70 const Extension* extension, 70 const Extension* extension,
71 bool is_update, 71 bool is_update,
72 bool from_ephemeral,
72 const std::string& old_name) OVERRIDE; 73 const std::string& old_name) OVERRIDE;
73 74
74 ObserverList<InstallObserver> observers_; 75 ObserverList<InstallObserver> observers_;
75 content::NotificationRegistrar registrar_; 76 content::NotificationRegistrar registrar_;
76 PrefChangeRegistrar pref_change_registrar_; 77 PrefChangeRegistrar pref_change_registrar_;
77 78
78 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 79 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
79 extension_registry_observer_; 80 extension_registry_observer_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(InstallTracker); 82 DISALLOW_COPY_AND_ASSIGN(InstallTracker);
82 }; 83 };
83 84
84 } // namespace extensions 85 } // namespace extensions
85 86
86 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_ 87 #endif // CHROME_BROWSER_EXTENSIONS_INSTALL_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698