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

Unified Diff: services/resource_coordinator/public/interfaces/coordination_unit.mojom

Issue 2917793002: [GRC] Coordination Unit Key-Value Storage (Closed)
Patch Set: Fix comments Created 3 years, 6 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/resource_coordinator/coordination_unit/coordination_unit_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/resource_coordinator/public/interfaces/coordination_unit.mojom
diff --git a/services/resource_coordinator/public/interfaces/coordination_unit.mojom b/services/resource_coordinator/public/interfaces/coordination_unit.mojom
index c8c35aacbc9426abc215057370d895e4e8c9712a..825ecf3b63a8ccd172d64991b4c4c7ffbe774a5b 100644
--- a/services/resource_coordinator/public/interfaces/coordination_unit.mojom
+++ b/services/resource_coordinator/public/interfaces/coordination_unit.mojom
@@ -5,6 +5,7 @@
module resource_coordinator.mojom;
import "events.mojom";
+import "mojo/common/values.mojom";
// Any new type here needs to be mirrored between coordination_unit_types.h and
// coordination_unit.mojom, and have mappings between the two defined in
@@ -29,6 +30,19 @@ interface CoordinationPolicyCallback {
SetCoordinationPolicy(CoordinationPolicy policy);
};
+// Defines the Storage property keys that can be get/set on the
+// CoordinationUnitImpl internal key-value store.
+enum PropertyType {
+ kTest,
+};
+
+// Key-value pair that corresponds to an entry in the CoordinationUnitImpl's
+// internal key-value store
+struct Property {
+ PropertyType property;
+ mojo.common.mojom.Value value;
+};
+
interface CoordinationUnit {
SendEvent(Event event);
@@ -42,4 +56,7 @@ interface CoordinationUnit {
// and can't be a direct ascendent or descendent of the current unit.
AddChild(CoordinationUnitID child_id);
SetCoordinationPolicyCallback(CoordinationPolicyCallback callback);
+
+ // Sets a property on the CoordinationUnitImpl's internal key-value store.
+ SetProperty(Property property);
};
« no previous file with comments | « services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698