Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: services/preferences/public/interfaces/preferences.mojom

Issue 2738353002: Pref service: integrate PersistentPrefStoreImpl with PrefStoreManagerImpl. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698