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/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
16 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
17 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
18 | 18 |
19 class ExtensionsService; | 19 class ExtensionsService; |
20 class PrefService; | 20 class PrefService; |
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 { |
(...skipping 104 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 |