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

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

Issue 2778733003: Pref service: delete old implementation (Closed)
Patch Set: Fix missed merge Created 3 years, 8 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 import "services/preferences/public/interfaces/preferences_configuration.mojom";
9 9
10 const string kServiceName = "preferences"; 10 const string kServiceName = "preferences";
11
12 // Used for the creation of a PreferencesService and to ensure that the
13 // PreferencesServiceClient is bound at creation time.
14 interface PreferencesServiceFactory {
15 // Creates a PreferencesService bound to the provided |observer|.
16 Create(PreferencesServiceClient observer, PreferencesService& service);
17 };
18
19 // Used to subscribe to preference changes within PreferenceManager. After
20 // requesting to observe, the current values for all requested keys are sent.
21 interface PreferencesServiceClient {
22 OnPreferencesChanged(mojo.common.mojom.DictionaryValue preferences);
23 };
24
25 // Manages actual read/write of preference data. Accepts observers who subscribe
26 // to preferences, notifying them of changes.
27 interface PreferencesService {
28 SetPreferences(mojo.common.mojom.DictionaryValue preferences);
29 Subscribe(array<string> preferences);
30 };
31
32 const string kPrefStoreServiceName = "preferences2";
33 const string kForwarderServiceName = "preferences_forwarder"; 11 const string kForwarderServiceName = "preferences_forwarder";
34 12
35 // The know pref store types. 13 // The know pref store types.
36 // 14 //
37 // Should be kept in sync with PrefValueStore::PrefStoreType. 15 // Should be kept in sync with PrefValueStore::PrefStoreType.
38 enum PrefStoreType { 16 enum PrefStoreType {
39 MANAGED, 17 MANAGED,
40 SUPERVISED_USER, 18 SUPERVISED_USER,
41 EXTENSION, 19 EXTENSION,
42 COMMAND_LINE, 20 COMMAND_LINE,
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // PrefRegistry::PrefRegistrationFlags and 121 // PrefRegistry::PrefRegistrationFlags and
144 // PrefRegistrySyncable::PrefRegistrationFlags. 122 // PrefRegistrySyncable::PrefRegistrationFlags.
145 uint32 flags; 123 uint32 flags;
146 }; 124 };
147 125
148 interface PrefServiceControl { 126 interface PrefServiceControl {
149 // Initializes the pref service. This must be called before the service can 127 // Initializes the pref service. This must be called before the service can
150 // be used. 128 // be used.
151 Init(PersistentPrefStoreConfiguration configuration); 129 Init(PersistentPrefStoreConfiguration configuration);
152 }; 130 };
OLDNEW
« no previous file with comments | « services/preferences/public/cpp/tests/pref_client_store_unittest.cc ('k') | services/preferences/unittest_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698