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

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

Issue 2474653003: PreferencesManager (Closed)
Patch Set: DLOG error states Created 4 years 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 bf8d186bfea59db06e7f86cfb37a073846e2c366..0ff39765a8276c9efb8ba562a25b5bee692d2546 100644
--- a/services/preferences/public/interfaces/preferences.mojom
+++ b/services/preferences/public/interfaces/preferences.mojom
@@ -6,6 +6,8 @@ module prefs.mojom;
import "mojo/common/common_custom_types.mojom";
+const string kServiceName = "prefs:manager";
sadrul 2016/12/08 01:07:22 This is kCapabilityName, right?
jonross 2016/12/08 14:36:40 I'd only seen kServiceName used in mojoms for decl
sadrul 2016/12/08 15:33:31 service name is the actual name of the service you
jonross 2016/12/09 20:48:03 There currently is 0 usage of kCapabilityName. Tho
jonross 2016/12/14 15:01:41 Done.
+
// Used to subscribe to preference changes within PreferenceManager. After
// requesting to observe, the current values for all requested keys are sent.
interface PreferencesObserver {
@@ -15,6 +17,7 @@ interface PreferencesObserver {
// 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);
+ AddObserver(PreferencesObserver client);
SetPreferences(mojo.common.mojom.DictionaryValue preferences);
+ Subscribe(array<string> preferences);
};

Powered by Google App Engine
This is Rietveld 408576698