| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Returns the Application associated with |extension| or NULL. | 99 // Returns the Application associated with |extension| or NULL. |
| 100 const Application* FindApplication(const Extension* extension) const; | 100 const Application* FindApplication(const Extension* extension) const; |
| 101 | 101 |
| 102 // Returns the Application associated with |extension| or NULL. | 102 // Returns the Application associated with |extension| or NULL. |
| 103 Application* FindApplication(const Extension* extension); | 103 Application* FindApplication(const Extension* extension); |
| 104 | 104 |
| 105 // content::NotificationObserver implementation. | 105 // content::NotificationObserver implementation. |
| 106 virtual void Observe(int type, | 106 virtual void Observe(int type, |
| 107 const content::NotificationSource& source, | 107 const content::NotificationSource& source, |
| 108 const content::NotificationDetails& details); | 108 const content::NotificationDetails& details) OVERRIDE; |
| 109 | 109 |
| 110 // Notifies observers that some of the data associated with this background | 110 // Notifies observers that some of the data associated with this background |
| 111 // application, e. g. the Icon, has changed. | 111 // application, e. g. the Icon, has changed. |
| 112 void SendApplicationDataChangedNotifications(const Extension* extension); | 112 void SendApplicationDataChangedNotifications(const Extension* extension); |
| 113 | 113 |
| 114 // Notifies observers that at least one background application has been added | 114 // Notifies observers that at least one background application has been added |
| 115 // or removed. | 115 // or removed. |
| 116 void SendApplicationListChangedNotifications(); | 116 void SendApplicationListChangedNotifications(); |
| 117 | 117 |
| 118 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED. | 118 // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 133 ApplicationMap applications_; | 133 ApplicationMap applications_; |
| 134 ExtensionList extensions_; | 134 ExtensionList extensions_; |
| 135 ObserverList<Observer> observers_; | 135 ObserverList<Observer> observers_; |
| 136 Profile* profile_; | 136 Profile* profile_; |
| 137 content::NotificationRegistrar registrar_; | 137 content::NotificationRegistrar registrar_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); | 139 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 142 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ |
| OLD | NEW |