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

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

Issue 2940983002: [GRC] Add Additional CoordinationUnitProperty Types (Closed)
Patch Set: Remove extraneous files 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 | « no previous file | 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 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,
38 kTabURL,
37 }; 39 };
38 40
39 // Key-value pair that corresponds to an entry in the CoordinationUnitImpl's 41 // Key-value pair that corresponds to an entry in the CoordinationUnitImpl's
40 // internal key-value store 42 // internal key-value store
41 struct Property { 43 struct Property {
42 PropertyType property; 44 PropertyType property;
43 mojo.common.mojom.Value value; 45 mojo.common.mojom.Value value;
44 }; 46 };
45 47
46 interface CoordinationUnit { 48 interface CoordinationUnit {
(...skipping 12 matching lines...) Expand all
59 AddChild(CoordinationUnitID child_id); 61 AddChild(CoordinationUnitID child_id);
60 62
61 // child_id must represent a CU that already exists service-side 63 // child_id must represent a CU that already exists service-side
62 // and is a direct descendent of the current unit. 64 // and is a direct descendent of the current unit.
63 RemoveChild(CoordinationUnitID child_id); 65 RemoveChild(CoordinationUnitID child_id);
64 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback); 66 SetCoordinationPolicyCallback(CoordinationPolicyCallback callback);
65 67
66 // Sets a property on the CoordinationUnitImpl's internal key-value store. 68 // Sets a property on the CoordinationUnitImpl's internal key-value store.
67 SetProperty(Property property); 69 SetProperty(Property property);
68 }; 70 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698