| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module prefs.mojom; | 5 module prefs.mojom; |
| 6 | 6 |
| 7 import "mojo/common/values.mojom"; | 7 import "mojo/common/values.mojom"; |
| 8 import "services/preferences/public/interfaces/preferences_configuration.mojom"; | 8 import "services/preferences/public/interfaces/preferences_configuration.mojom"; |
| 9 | 9 |
| 10 const string kServiceName = "preferences"; | 10 const string kServiceName = "preferences"; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 // Manages actual read/write of preference data. Accepts observers who subscribe | 25 // Manages actual read/write of preference data. Accepts observers who subscribe |
| 26 // to preferences, notifying them of changes. | 26 // to preferences, notifying them of changes. |
| 27 interface PreferencesService { | 27 interface PreferencesService { |
| 28 SetPreferences(mojo.common.mojom.DictionaryValue preferences); | 28 SetPreferences(mojo.common.mojom.DictionaryValue preferences); |
| 29 Subscribe(array<string> preferences); | 29 Subscribe(array<string> preferences); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 const string kPrefStoreServiceName = "preferences2"; | 32 const string kPrefStoreServiceName = "preferences2"; |
| 33 const string kForwarderServiceName = "preferences_forwarder"; |
| 33 | 34 |
| 34 // The know pref store types. | 35 // The know pref store types. |
| 35 // | 36 // |
| 36 // Should be kept in sync with PrefValueStore::PrefStoreType. | 37 // Should be kept in sync with PrefValueStore::PrefStoreType. |
| 37 enum PrefStoreType { | 38 enum PrefStoreType { |
| 38 MANAGED, | 39 MANAGED, |
| 39 SUPERVISED_USER, | 40 SUPERVISED_USER, |
| 40 EXTENSION, | 41 EXTENSION, |
| 41 COMMAND_LINE, | 42 COMMAND_LINE, |
| 42 USER, | 43 USER, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // PrefRegistry::PrefRegistrationFlags and | 142 // PrefRegistry::PrefRegistrationFlags and |
| 142 // PrefRegistrySyncable::PrefRegistrationFlags. | 143 // PrefRegistrySyncable::PrefRegistrationFlags. |
| 143 uint32 flags; | 144 uint32 flags; |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 interface PrefServiceControl { | 147 interface PrefServiceControl { |
| 147 // Initializes the pref service. This must be called before the service can | 148 // Initializes the pref service. This must be called before the service can |
| 148 // be used. | 149 // be used. |
| 149 Init(PersistentPrefStoreConfiguration configuration); | 150 Init(PersistentPrefStoreConfiguration configuration); |
| 150 }; | 151 }; |
| OLD | NEW |