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

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

Issue 2092453002: Mojom interface for Preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Const ref nit Created 4 years, 1 month 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
« no previous file with comments | « services/preferences/public/interfaces/OWNERS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/preferences/public/interfaces/preferences.mojom
diff --git a/services/preferences/public/interfaces/preferences.mojom b/services/preferences/public/interfaces/preferences.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..bf8d186bfea59db06e7f86cfb37a073846e2c366
--- /dev/null
+++ b/services/preferences/public/interfaces/preferences.mojom
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module prefs.mojom;
+
+import "mojo/common/common_custom_types.mojom";
+
+// Used to subscribe to preference changes within PreferenceManager. After
+// requesting to observe, the current values for all requested keys are sent.
+interface PreferencesObserver {
+ OnPreferencesChanged(mojo.common.mojom.DictionaryValue preferences);
+};
+
+// Manages actual read/write of preference data. Accepts observers who subscribe
+// to preferences, notifying them of changes.
+interface PreferencesManager {
+ AddObserver(array<string> preferences, PreferencesObserver client);
+ SetPreferences(mojo.common.mojom.DictionaryValue preferences);
+};
« no previous file with comments | « services/preferences/public/interfaces/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698