| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module resource_coordinator.mojom; | 5 module resource_coordinator.mojom; |
| 6 | 6 |
| 7 import "events.mojom"; | 7 import "events.mojom"; |
| 8 import "mojo/common/values.mojom"; | 8 import "mojo/common/values.mojom"; |
| 9 | 9 |
| 10 // Any new type here needs to be mirrored between coordination_unit_types.h and | 10 // Any new type here needs to be mirrored between coordination_unit_types.h and |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SendEvent(Event event); | 47 SendEvent(Event event); |
| 48 | 48 |
| 49 // Mainly used to force a round-trip to the service over the pipe for | 49 // Mainly used to force a round-trip to the service over the pipe for |
| 50 // a specific unit, so we don't have to deal with possibly-not-yet-created | 50 // a specific unit, so we don't have to deal with possibly-not-yet-created |
| 51 // children in AddChild() | 51 // children in AddChild() |
| 52 GetID() => (CoordinationUnitID id); | 52 GetID() => (CoordinationUnitID id); |
| 53 | 53 |
| 54 // Add a new binding to an existing CoordinationUnit. | 54 // Add a new binding to an existing CoordinationUnit. |
| 55 AddBinding(CoordinationUnit& request); | 55 AddBinding(CoordinationUnit& request); |
| 56 | 56 |
| 57 // child_id must represent a CU which already exists service-side, | 57 // child_id must represent a CU that already exists service-side, |
| 58 // and can't be a direct ascendent or descendent of the current unit. | 58 // and can't be a direct ascendent or descendent of the current unit. |
| 59 AddChild(CoordinationUnitID child_id); | 59 AddChild(CoordinationUnitID child_id); |
| 60 |
| 61 // child_id must represent a CU that already exists service-side |
| 62 // and is a direct descendent of the current unit. |
| 63 RemoveChild(CoordinationUnitID child_id); |
| 60 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback); | 64 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback); |
| 61 | 65 |
| 62 // Sets a property on the CoordinationUnitImpl's internal key-value store. | 66 // Sets a property on the CoordinationUnitImpl's internal key-value store. |
| 63 SetProperty(Property property); | 67 SetProperty(Property property); |
| 64 }; | 68 }; |
| OLD | NEW |