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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BACKGROUND_APPLICATION_LIST_MODEL_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Application* FindApplication(const extensions::Extension* extension); 124 Application* FindApplication(const extensions::Extension* extension);
125 125
126 // content::NotificationObserver implementation. 126 // content::NotificationObserver implementation.
127 void Observe(int type, 127 void Observe(int type,
128 const content::NotificationSource& source, 128 const content::NotificationSource& source,
129 const content::NotificationDetails& details) override; 129 const content::NotificationDetails& details) override;
130 130
131 // extensions::ExtensionRegistryObserver implementation. 131 // extensions::ExtensionRegistryObserver implementation.
132 void OnExtensionLoaded(content::BrowserContext* browser_context, 132 void OnExtensionLoaded(content::BrowserContext* browser_context,
133 const extensions::Extension* extension) override; 133 const extensions::Extension* extension) override;
134 void OnExtensionUnloaded( 134 void OnExtensionUnloaded(content::BrowserContext* browser_context,
135 content::BrowserContext* browser_context, 135 const extensions::Extension* extension,
136 const extensions::Extension* extension, 136 extensions::UnloadedExtensionReason reason) override;
137 extensions::UnloadedExtensionInfo::Reason reason) override;
138 void OnShutdown(extensions::ExtensionRegistry* registry) override; 137 void OnShutdown(extensions::ExtensionRegistry* registry) override;
139 138
140 // Intended to be called when extension system is ready. 139 // Intended to be called when extension system is ready.
141 void OnExtensionSystemReady(); 140 void OnExtensionSystemReady();
142 141
143 // Notifies observers that some of the data associated with this background 142 // Notifies observers that some of the data associated with this background
144 // application, e. g. the Icon, has changed. 143 // application, e. g. the Icon, has changed.
145 void SendApplicationDataChangedNotifications( 144 void SendApplicationDataChangedNotifications(
146 const extensions::Extension* extension); 145 const extensions::Extension* extension);
147 146
(...skipping 23 matching lines...) Expand all
171 ScopedObserver<extensions::ExtensionRegistry, 170 ScopedObserver<extensions::ExtensionRegistry,
172 extensions::ExtensionRegistryObserver> 171 extensions::ExtensionRegistryObserver>
173 extension_registry_observer_; 172 extension_registry_observer_;
174 173
175 base::WeakPtrFactory<BackgroundApplicationListModel> weak_ptr_factory_; 174 base::WeakPtrFactory<BackgroundApplicationListModel> weak_ptr_factory_;
176 175
177 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); 176 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
178 }; 177 };
179 178
180 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ 179 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698