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

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

Issue 2812863002: Pref service: Add a ScopedDictionaryPrefUpdate to track value changes. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/preferences/public/cpp/tests/pref_store_client_unittest.cc ('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
index 47a79dc538663c83bcbf39c83e5ee82d1f3f0a2c..75b8573f09d65d9871c6c4b1b1f6d6146fc8ec60 100644
--- a/services/preferences/public/interfaces/preferences.mojom
+++ b/services/preferences/public/interfaces/preferences.mojom
@@ -99,13 +99,27 @@ interface PrefStoreConnector {
map<PrefStoreType, PrefStoreConnection> connections);
};
+// An update to a subcomponent of a pref.
+struct SubPrefUpdate {
+ // The path to the changed value within the pref.
+ array<string> path;
+ // The new value; a null |value| indicates a delete.
+ mojo.common.mojom.Value? value;
+};
+
+union PrefUpdateValue {
+ array<SubPrefUpdate> split_updates;
+ // An atomic update to the pref. A null |atomic_update| indicates a delete.
+ mojo.common.mojom.Value? atomic_update;
+};
+
// An update to a pref.
struct PrefUpdate {
// The key of the pref being updated.
string key;
- // The new value; a null |value| indicates a delete.
- mojo.common.mojom.Value? value;
- //|flags| is a bitmask of WritablePrefStore::PrefWriteFlags.
+ // The value update.
+ PrefUpdateValue value;
+ // |flags| is a bitmask of WritablePrefStore::PrefWriteFlags.
uint32 flags;
};
« no previous file with comments | « services/preferences/public/cpp/tests/pref_store_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698