| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 111   // Returns the Application associated with |extension| or NULL. | 111   // Returns the Application associated with |extension| or NULL. | 
| 112   const Application* FindApplication( | 112   const Application* FindApplication( | 
| 113       const extensions::Extension* extension) const; | 113       const extensions::Extension* extension) const; | 
| 114 | 114 | 
| 115   // Returns the Application associated with |extension| or NULL. | 115   // Returns the Application associated with |extension| or NULL. | 
| 116   Application* FindApplication(const extensions::Extension* extension); | 116   Application* FindApplication(const extensions::Extension* extension); | 
| 117 | 117 | 
| 118   // content::NotificationObserver implementation. | 118   // content::NotificationObserver implementation. | 
| 119   virtual void Observe(int type, | 119   virtual void Observe(int type, | 
| 120                        const content::NotificationSource& source, | 120                        const content::NotificationSource& source, | 
| 121                        const content::NotificationDetails& details) OVERRIDE; | 121                        const content::NotificationDetails& details) override; | 
| 122 | 122 | 
| 123   // Notifies observers that some of the data associated with this background | 123   // Notifies observers that some of the data associated with this background | 
| 124   // application, e. g. the Icon, has changed. | 124   // application, e. g. the Icon, has changed. | 
| 125   void SendApplicationDataChangedNotifications( | 125   void SendApplicationDataChangedNotifications( | 
| 126       const extensions::Extension* extension); | 126       const extensions::Extension* extension); | 
| 127 | 127 | 
| 128   // Notifies observers that at least one background application has been added | 128   // Notifies observers that at least one background application has been added | 
| 129   // or removed. | 129   // or removed. | 
| 130   void SendApplicationListChangedNotifications(); | 130   void SendApplicationListChangedNotifications(); | 
| 131 | 131 | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 155   extensions::ExtensionList extensions_; | 155   extensions::ExtensionList extensions_; | 
| 156   ObserverList<Observer, true> observers_; | 156   ObserverList<Observer, true> observers_; | 
| 157   Profile* profile_; | 157   Profile* profile_; | 
| 158   content::NotificationRegistrar registrar_; | 158   content::NotificationRegistrar registrar_; | 
| 159   bool ready_; | 159   bool ready_; | 
| 160 | 160 | 
| 161   DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); | 161   DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); | 
| 162 }; | 162 }; | 
| 163 | 163 | 
| 164 #endif  // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 164 #endif  // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 
| OLD | NEW | 
|---|