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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
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
98 // Clears cached data related to |extension|. 98 // Clears cached data related to |extension|.
99 void DissociateApplicationData(const Extension* extension); 99 void DissociateApplicationData(const Extension* extension);
100 100
101 // Returns the Application associated with |extension| or NULL. 101 // Returns the Application associated with |extension| or NULL.
102 const Application* FindApplication(const Extension* extension) const; 102 const Application* FindApplication(const Extension* extension) const;
103 103
104 // Returns the Application associated with |extension| or NULL. 104 // Returns the Application associated with |extension| or NULL.
105 Application* FindApplication(const Extension* extension); 105 Application* FindApplication(const Extension* extension);
106 106
107 // NotificationObserver implementation. 107 // NotificationObserver implementation.
108 virtual void Observe(NotificationType type, 108 virtual void Observe(int type,
109 const NotificationSource& source, 109 const NotificationSource& source,
110 const NotificationDetails& details); 110 const NotificationDetails& details);
111 111
112 // Notifies observers that some of the data associated with this background 112 // Notifies observers that some of the data associated with this background
113 // application, e. g. the Icon, has changed. 113 // application, e. g. the Icon, has changed.
114 void SendApplicationDataChangedNotifications(const Extension* extension); 114 void SendApplicationDataChangedNotifications(const Extension* extension);
115 115
116 // Notifies observers that at least one background application has been added 116 // Notifies observers that at least one background application has been added
117 // or removed. 117 // or removed.
118 void SendApplicationListChangedNotifications(); 118 void SendApplicationListChangedNotifications();
(...skipping 10 matching lines...) Expand all
129 ApplicationMap applications_; 129 ApplicationMap applications_;
130 ExtensionList extensions_; 130 ExtensionList extensions_;
131 ObserverList<Observer> observers_; 131 ObserverList<Observer> observers_;
132 Profile* profile_; 132 Profile* profile_;
133 NotificationRegistrar registrar_; 133 NotificationRegistrar registrar_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); 135 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
136 }; 136 };
137 137
138 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_ 138 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_APPLICATION_LIST_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698