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

Side by Side Diff: chrome/browser/background_application_list_model.h

Issue 5968009: Change extension unload notification to indicate updates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BACKGROUND_APPLICATION_LIST_MODEL_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
6 #define CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ 6 #define CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // application, e. g. the Icon, has changed. 112 // application, e. g. the Icon, has changed.
113 void OnApplicationDataChanged(const Extension* extension); 113 void OnApplicationDataChanged(const Extension* extension);
114 114
115 // Notifies observers that at least one background application has been added 115 // Notifies observers that at least one background application has been added
116 // or removed. 116 // or removed.
117 void OnApplicationListChanged(); 117 void OnApplicationListChanged();
118 118
119 // Invoked by Observe for EXTENSION_LOADED notifications. 119 // Invoked by Observe for EXTENSION_LOADED notifications.
120 void OnExtensionLoaded(Extension* extension); 120 void OnExtensionLoaded(Extension* extension);
121 121
122 // Invoked by Observe for EXTENSION_UNLOADED* notifications. 122 // Invoked by Observe for EXTENSION_UNLOADED notifications.
123 void OnExtensionUnloaded(Extension* extension); 123 void OnExtensionUnloaded(const Extension* extension);
124 124
125 // Refresh the list of background applications and generates ApplicationAdded 125 // Refresh the list of background applications and generates ApplicationAdded
126 // and ApplicationRemoved events. 126 // and ApplicationRemoved events.
127 void Update(); 127 void Update();
128 128
129 ApplicationMap applications_; 129 ApplicationMap applications_;
130 ExtensionList extensions_; 130 ExtensionList extensions_;
131 ObserverList<Observer> observers_; 131 ObserverList<Observer> observers_;
132 Profile* profile_; 132 Profile* profile_;
133 NotificationRegistrar registrar_; 133 NotificationRegistrar registrar_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); 135 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ 138 #endif // CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698