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 | 9 |
9 const string kServiceName = "preferences"; | 10 const string kServiceName = "preferences"; |
10 | 11 |
11 // Used for the creation of a PreferencesService and to ensure that the | 12 // Used for the creation of a PreferencesService and to ensure that the |
12 // PreferencesServiceClient is bound at creation time. | 13 // PreferencesServiceClient is bound at creation time. |
13 interface PreferencesServiceFactory { | 14 interface PreferencesServiceFactory { |
14 // Creates a PreferencesService bound to the provided |observer|. | 15 // Creates a PreferencesService bound to the provided |observer|. |
15 Create(PreferencesServiceClient observer, PreferencesService& service); | 16 Create(PreferencesServiceClient observer, PreferencesService& service); |
16 }; | 17 }; |
17 | 18 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // |pref_store| provides write access; |observer| is used to observe writes | 126 // |pref_store| provides write access; |observer| is used to observe writes |
126 // instigated by other clients. | 127 // instigated by other clients. |
127 [Sync] | 128 [Sync] |
128 Connect() => ( | 129 Connect() => ( |
129 ReadError read_error, | 130 ReadError read_error, |
130 bool read_only, | 131 bool read_only, |
131 mojo.common.mojom.DictionaryValue? preferences, | 132 mojo.common.mojom.DictionaryValue? preferences, |
132 PersistentPrefStore? pref_store, | 133 PersistentPrefStore? pref_store, |
133 PrefStoreObserver&? observer); | 134 PrefStoreObserver&? observer); |
134 }; | 135 }; |
| 136 |
| 137 interface PrefServiceControl { |
| 138 // Initializes the pref service. This must be called before the service can |
| 139 // be used. |
| 140 Init(PersistentPrefStoreConfiguration configuration); |
| 141 }; |
OLD | NEW |