OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Sends the settings to all subscribers. This method should be called by the | 145 // Sends the settings to all subscribers. This method should be called by the |
146 // subclass whenever the settings change. | 146 // subclass whenever the settings change. |
147 void InformSubscribers(); | 147 void InformSubscribers(); |
148 | 148 |
149 // Used for persisting the settings. Unlike other PrefStores, this one is not | 149 // Used for persisting the settings. Unlike other PrefStores, this one is not |
150 // directly hooked up to the PrefService. | 150 // directly hooked up to the PrefService. |
151 scoped_refptr<PersistentPrefStore> store_; | 151 scoped_refptr<PersistentPrefStore> store_; |
152 | 152 |
153 bool active_; | 153 bool active_; |
154 | 154 |
| 155 bool initialization_failed_; |
| 156 |
155 // A set of local settings that are fixed and not configured remotely. | 157 // A set of local settings that are fixed and not configured remotely. |
156 scoped_ptr<base::DictionaryValue> local_settings_; | 158 scoped_ptr<base::DictionaryValue> local_settings_; |
157 | 159 |
158 std::vector<SettingsCallback> subscribers_; | 160 std::vector<SettingsCallback> subscribers_; |
159 | 161 |
160 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; | 162 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; |
161 scoped_ptr<syncer::SyncErrorFactory> error_handler_; | 163 scoped_ptr<syncer::SyncErrorFactory> error_handler_; |
162 | 164 |
163 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSettingsService); | 165 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSettingsService); |
164 }; | 166 }; |
165 | 167 |
166 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ | 168 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SETTINGS_SERVICE_H_ |
OLD | NEW |