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

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

Issue 2926663003: [GRC] Coordination Unit Graph Observer (Closed)
Patch Set: Fix comment typo 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
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 16 matching lines...) Expand all
27 }; 27 };
28 28
29 interface CoordinationPolicyCallback { 29 interface CoordinationPolicyCallback {
30 SetCoordinationPolicy(CoordinationPolicy policy); 30 SetCoordinationPolicy(CoordinationPolicy policy);
31 }; 31 };
32 32
33 // Defines the Storage property keys that can be get/set on the 33 // Defines the Storage property keys that can be get/set on the
34 // CoordinationUnitImpl internal key-value store. 34 // CoordinationUnitImpl internal key-value store.
35 enum PropertyType { 35 enum PropertyType {
36 kTest, 36 kTest,
37 kProcessCPUUsage,
37 }; 38 };
38 39
39 // Key-value pair that corresponds to an entry in the CoordinationUnitImpl's 40 // Key-value pair that corresponds to an entry in the CoordinationUnitImpl's
40 // internal key-value store 41 // internal key-value store
41 struct Property { 42 struct Property {
42 PropertyType property; 43 PropertyType property;
43 mojo.common.mojom.Value value; 44 mojo.common.mojom.Value value;
44 }; 45 };
45 46
46 interface CoordinationUnit { 47 interface CoordinationUnit {
(...skipping 12 matching lines...) Expand all
59 AddChild(CoordinationUnitID child_id); 60 AddChild(CoordinationUnitID child_id);
60 61
61 // child_id must represent a CU that already exists service-side 62 // child_id must represent a CU that already exists service-side
62 // and is a direct descendent of the current unit. 63 // and is a direct descendent of the current unit.
63 RemoveChild(CoordinationUnitID child_id); 64 RemoveChild(CoordinationUnitID child_id);
64 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback); 65 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback);
65 66
66 // Sets a property on the CoordinationUnitImpl's internal key-value store. 67 // Sets a property on the CoordinationUnitImpl's internal key-value store.
67 SetProperty(Property property); 68 SetProperty(Property property);
68 }; 69 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698