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_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SE
RVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SE
RVICE_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SE
RVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SE
RVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/callback_list.h" | 12 #include "base/callback_list.h" |
13 #include "chrome/browser/supervised_user/supervised_users.h" | 13 #include "chrome/browser/supervised_user/supervised_users.h" |
14 #include "components/keyed_service/core/keyed_service.h" | 14 #include "components/keyed_service/core/keyed_service.h" |
15 #include "components/sync/model/syncable_service.h" | 15 #include "components/sync/model/syncable_service.h" |
16 | 16 |
17 class PrefService; | 17 class PrefService; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class DictionaryValue; | |
21 class Value; | 20 class Value; |
22 } | 21 } |
23 | 22 |
24 namespace user_prefs { | 23 namespace user_prefs { |
25 class PrefRegistrySyncable; | 24 class PrefRegistrySyncable; |
26 } | 25 } |
27 | 26 |
28 // SupervisedUserSharedSettingsService syncs settings (as key-value pairs) that | 27 // SupervisedUserSharedSettingsService syncs settings (as key-value pairs) that |
29 // can be modified both by a supervised user and their manager. | 28 // can be modified both by a supervised user and their manager. |
30 // A supervised user can only modify their own settings, whereas a manager can | 29 // A supervised user can only modify their own settings, whereas a manager can |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 private: | 105 private: |
107 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_; | 106 std::unique_ptr<syncer::SyncChangeProcessor> sync_processor_; |
108 std::unique_ptr<syncer::SyncErrorFactory> error_handler_; | 107 std::unique_ptr<syncer::SyncErrorFactory> error_handler_; |
109 | 108 |
110 ChangeCallbackList callbacks_; | 109 ChangeCallbackList callbacks_; |
111 | 110 |
112 PrefService* prefs_; | 111 PrefService* prefs_; |
113 }; | 112 }; |
114 | 113 |
115 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS
_SERVICE_H_ | 114 #endif // CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS
_SERVICE_H_ |
OLD | NEW |