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 enum IDType { |
| 10 NONE, |
| 11 WEBCONTENTS, |
| 12 FRAME, |
| 13 NAVIGATION, |
| 14 PROCESS |
| 15 }; |
| 16 |
| 17 struct CoordinationUnitID { |
| 18 IDType type; |
| 19 string id; |
| 20 }; |
| 21 |
| 22 struct Policy { |
| 23 bool use_background_priority; |
| 24 }; |
| 25 |
| 26 interface PolicyCallback { |
| 27 SetPolicy(Policy policy); |
| 28 }; |
| 29 |
| 30 interface CoordinationUnit { |
| 31 SendEvent(Event event); |
| 32 |
| 33 GetID() => (CoordinationUnitID id); |
| 34 Duplicate(CoordinationUnit& request); |
| 35 AddChild(CoordinationUnitID child_id); |
| 36 SetPolicyCallback(PolicyCallback callback); |
| 37 }; |
OLD | NEW |