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

Unified Diff: services/preferences/public/interfaces/preferences.mojom

Issue 2777483002: Pref service: Add initial support for pref registration. (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 side-by-side diff with in-line comments
Download patch
Index: services/preferences/public/interfaces/preferences.mojom
diff --git a/services/preferences/public/interfaces/preferences.mojom b/services/preferences/public/interfaces/preferences.mojom
index 0225a8486d4c7a41afd01051589ddf08ac736532..748599833e3d0da2079ecf89cff609ebc88df109 100644
--- a/services/preferences/public/interfaces/preferences.mojom
+++ b/services/preferences/public/interfaces/preferences.mojom
@@ -112,8 +112,9 @@ interface PrefStoreConnector {
// prefs in each store and an |observer| interfaces through which updates can
// be received.
[Sync]
- Connect() => (PersistentPrefStoreConnection connection,
- map<PrefStoreType, PrefStoreConnection> connections);
+ Connect(PrefRegistry pref_registry) =>
+ (PersistentPrefStoreConnection connection,
+ map<PrefStoreType, PrefStoreConnection> connections);
};
// An interface providing mutation access to a PersistentPrefStore.
@@ -128,6 +129,16 @@ interface PersistentPrefStore {
ClearMutableValues();
};
+// A registry of all prefs registered by a single client.
+struct PrefRegistry {
+ map<string, PrefRegistration> registrations;
+};
+
+struct PrefRegistration {
+ mojo.common.mojom.Value default_value;
+ uint32 flags;
tibell 2017/03/26 22:54:47 Add a comment pointing to where these flags are de
Sam McNally 2017/03/26 23:02:45 Done.
+};
+
interface PrefServiceControl {
// Initializes the pref service. This must be called before the service can
// be used.

Powered by Google App Engine
This is Rietveld 408576698