OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED. | 128 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED. |
129 void OnExtensionLoaded(const extensions::Extension* extension); | 129 void OnExtensionLoaded(const extensions::Extension* extension); |
130 | 130 |
131 // Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED. | 131 // Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED. |
132 void OnExtensionUnloaded(const extensions::Extension* extension); | 132 void OnExtensionUnloaded(const extensions::Extension* extension); |
133 | 133 |
134 // Invoked by Observe for NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED. | 134 // Invoked by Observe for NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED. |
135 void OnExtensionPermissionsUpdated( | 135 void OnExtensionPermissionsUpdated( |
136 const extensions::Extension* extension, | 136 const extensions::Extension* extension, |
137 extensions::UpdatedExtensionPermissionsInfo::Reason reason, | 137 extensions::UpdatedExtensionPermissionsInfo::Reason reason, |
138 const ExtensionPermissionSet* permissions); | 138 const extensions::PermissionSet* permissions); |
139 | 139 |
140 // Refresh the list of background applications and generate notifications. | 140 // Refresh the list of background applications and generate notifications. |
141 void Update(); | 141 void Update(); |
142 | 142 |
143 ApplicationMap applications_; | 143 ApplicationMap applications_; |
144 extensions::ExtensionList extensions_; | 144 extensions::ExtensionList extensions_; |
145 ObserverList<Observer> observers_; | 145 ObserverList<Observer> observers_; |
146 Profile* profile_; | 146 Profile* profile_; |
147 content::NotificationRegistrar registrar_; | 147 content::NotificationRegistrar registrar_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); | 149 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); |
150 }; | 150 }; |
151 | 151 |
152 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 152 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ |
OLD | NEW |