| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Notifies observers that some of the data associated with this background | 118 // Notifies observers that some of the data associated with this background |
| 119 // application, e. g. the Icon, has changed. | 119 // application, e. g. the Icon, has changed. |
| 120 void SendApplicationDataChangedNotifications( | 120 void SendApplicationDataChangedNotifications( |
| 121 const extensions::Extension* extension); | 121 const extensions::Extension* extension); |
| 122 | 122 |
| 123 // Notifies observers that at least one background application has been added | 123 // Notifies observers that at least one background application has been added |
| 124 // or removed. | 124 // or removed. |
| 125 void SendApplicationListChangedNotifications(); | 125 void SendApplicationListChangedNotifications(); |
| 126 | 126 |
| 127 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED. | 127 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED_DEPRECATED. |
| 128 void OnExtensionLoaded(const extensions::Extension* extension); | 128 void OnExtensionLoaded(const extensions::Extension* extension); |
| 129 | 129 |
| 130 // Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED. | 130 // Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED. |
| 131 void OnExtensionUnloaded(const extensions::Extension* extension); | 131 void OnExtensionUnloaded(const extensions::Extension* extension); |
| 132 | 132 |
| 133 // Invoked by Observe for NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED. | 133 // Invoked by Observe for NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED. |
| 134 void OnExtensionPermissionsUpdated( | 134 void OnExtensionPermissionsUpdated( |
| 135 const extensions::Extension* extension, | 135 const extensions::Extension* extension, |
| 136 extensions::UpdatedExtensionPermissionsInfo::Reason reason, | 136 extensions::UpdatedExtensionPermissionsInfo::Reason reason, |
| 137 const extensions::PermissionSet* permissions); | 137 const extensions::PermissionSet* permissions); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 149 ApplicationMap applications_; | 149 ApplicationMap applications_; |
| 150 extensions::ExtensionList extensions_; | 150 extensions::ExtensionList extensions_; |
| 151 ObserverList<Observer, true> observers_; | 151 ObserverList<Observer, true> observers_; |
| 152 Profile* profile_; | 152 Profile* profile_; |
| 153 content::NotificationRegistrar registrar_; | 153 content::NotificationRegistrar registrar_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); | 155 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 158 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ |
| OLD | NEW |