OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module resource_coordinator.mojom; | |
6 | |
7 import "events.mojom"; | |
8 | |
9 [Native] | |
10 enum CoordinationUnitType; | |
11 | |
12 [Native] | |
Ken Rockot(use gerrit already)
2017/04/10 23:58:00
Please don't do this. It's useful if you're conver
| |
13 struct CoordinationUnitID; | |
14 | |
15 struct Policy { | |
16 bool use_background_priority; | |
17 }; | |
18 | |
19 interface PolicyCallback { | |
20 SetPolicy(Policy policy); | |
21 }; | |
22 | |
23 interface CoordinationUnit { | |
24 SendEvent(Event event); | |
25 | |
26 // Mainly used to force a round-trip to the service over the pipe for | |
27 // a specific unit, so we don't have to deal with possibly-not-yet-created | |
28 // children in AddChild() | |
29 GetID() => (CoordinationUnitID id); | |
30 | |
31 Duplicate(CoordinationUnit& request); | |
32 AddChild(CoordinationUnitID child_id); | |
33 SetPolicyCallback(PolicyCallback callback); | |
34 }; | |
OLD | NEW |