| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 5 #ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
| 6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 PrefSyncStatus sync_status); | 107 PrefSyncStatus sync_status); |
| 108 void RegisterUint64Pref(const char* path, | 108 void RegisterUint64Pref(const char* path, |
| 109 uint64 default_value, | 109 uint64 default_value, |
| 110 PrefSyncStatus sync_status); | 110 PrefSyncStatus sync_status); |
| 111 | 111 |
| 112 // Returns a new PrefRegistrySyncable that uses the same defaults | 112 // Returns a new PrefRegistrySyncable that uses the same defaults |
| 113 // store. | 113 // store. |
| 114 scoped_refptr<PrefRegistrySyncable> ForkForIncognito(); | 114 scoped_refptr<PrefRegistrySyncable> ForkForIncognito(); |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 virtual ~PrefRegistrySyncable(); | 117 ~PrefRegistrySyncable() override; |
| 118 | 118 |
| 119 void RegisterSyncablePreference(const char* path, | 119 void RegisterSyncablePreference(const char* path, |
| 120 base::Value* default_value, | 120 base::Value* default_value, |
| 121 PrefSyncStatus sync_status); | 121 PrefSyncStatus sync_status); |
| 122 | 122 |
| 123 SyncableRegistrationCallback callback_; | 123 SyncableRegistrationCallback callback_; |
| 124 | 124 |
| 125 // Contains the names of all registered preferences that are syncable. | 125 // Contains the names of all registered preferences that are syncable. |
| 126 PrefToStatus syncable_preferences_; | 126 PrefToStatus syncable_preferences_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); | 128 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace user_prefs | 131 } // namespace user_prefs |
| 132 | 132 |
| 133 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 133 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
| OLD | NEW |