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 2772673002: mash: switch to the new pref service (Closed)
Patch Set: Address review comments 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
« no previous file with comments | « services/preferences/public/cpp/pref_service_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
(...skipping 12 matching lines...) Expand all
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
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 };
OLDNEW
« no previous file with comments | « services/preferences/public/cpp/pref_service_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698