| 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);
|
| };
|
|
|