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

Side by Side Diff: services/resource_coordinator/public/interfaces/coordination_unit.mojom

Issue 2929883002: [GRC] ResourceCoordinatorInterface support to remove children (Closed)
Patch Set: Address reviewer feedback 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 unified diff | Download patch
« no previous file with comments | « services/resource_coordinator/public/cpp/resource_coordinator_interface.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « services/resource_coordinator/public/cpp/resource_coordinator_interface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698