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

Unified Diff: chrome/browser/background_application_list_model.h

Issue 6914021: Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/background_application_list_model.h
===================================================================
--- chrome/browser/background_application_list_model.h (revision 85937)
+++ chrome/browser/background_application_list_model.h (working copy)
@@ -32,11 +32,12 @@
public:
// Invoked when data that the model associates with the extension, such as
// the Icon, has changed.
- virtual void OnApplicationDataChanged(const Extension* extension);
+ virtual void OnApplicationDataChanged(const Extension* extension,
+ Profile* profile);
// Invoked when the model detects a previously unknown extension and/or when
// it no longer detects a previously known extension.
- virtual void OnApplicationListChanged();
+ virtual void OnApplicationListChanged(Profile* profile);
protected:
virtual ~Observer();
@@ -68,6 +69,9 @@
// Returns true if the passed extension is a background app.
static bool IsBackgroundApp(const Extension& extension);
+ // Returns whether any of the extensions are background apps.
+ bool HasBackgroundApp();
+
// Dissociate observer from this model.
void RemoveObserver(Observer* observer);
@@ -110,11 +114,11 @@
// Notifies observers that some of the data associated with this background
// application, e. g. the Icon, has changed.
- void OnApplicationDataChanged(const Extension* extension);
+ void OnApplicationDataChanged(const Extension* extension, Profile* profile);
// Notifies observers that at least one background application has been added
// or removed.
- void OnApplicationListChanged();
+ void OnApplicationListChanged(Profile* profile);
// Invoked by Observe for EXTENSION_LOADED notifications.
void OnExtensionLoaded(Extension* extension);

Powered by Google App Engine
This is Rietveld 408576698