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] |
| 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 GetID() => (CoordinationUnitID id); |
| 27 Duplicate(CoordinationUnit& request); |
| 28 AddChild(CoordinationUnitID child_id); |
| 29 SetPolicyCallback(PolicyCallback callback); |
| 30 }; |
OLD | NEW |