OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_APPLICATION_LIST_MODEL_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ |
6 #define CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ | 6 #define CHROME_BROWSER_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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "chrome/common/extensions/extension.h" | 14 #include "chrome/common/extensions/extension.h" |
15 #include "chrome/common/notification_observer.h" | 15 #include "chrome/common/notification_observer.h" |
16 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
17 | 17 |
18 class ExtensionsService; | 18 class ExtensionService; |
19 class PrefService; | 19 class PrefService; |
20 class Profile; | 20 class Profile; |
21 | 21 |
22 // Model for list of Background Applications, that is, Extensions with | 22 // Model for list of Background Applications, that is, Extensions with |
23 // kBackgroundPermission set, associated with a Profile. | 23 // kBackgroundPermission set, associated with a Profile. |
24 class BackgroundApplicationListModel : public NotificationObserver { | 24 class BackgroundApplicationListModel : public NotificationObserver { |
25 public: | 25 public: |
26 // Observer is informed of changes to the model. Users of the | 26 // Observer is informed of changes to the model. Users of the |
27 // BackgroundApplicationListModel should anticipate that associated data, | 27 // BackgroundApplicationListModel should anticipate that associated data, |
28 // e. g. the Icon, may exist and yet not be immediately available. When the | 28 // e. g. the Icon, may exist and yet not be immediately available. When the |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_APPLICATION_LIST_MODEL_H_ | 138 #endif // CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ |
OLD | NEW |