OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 memory_coordinator.mojom; | 5 module content.mojom; |
6 | 6 |
7 enum MemoryState { | 7 enum MemoryState { |
8 UNKNOWN = -1, | 8 UNKNOWN = -1, |
9 NORMAL = 0, | 9 NORMAL = 0, |
10 THROTTLED = 1, | 10 THROTTLED = 1, |
11 SUSPENDED = 2, | 11 SUSPENDED = 2, |
12 }; | 12 }; |
13 | 13 |
14 // ChildMemoryCoordinator lives in a child process and receives memory events | 14 // ChildMemoryCoordinator lives in a child process and receives memory events |
15 // dispatched by the central memory coordinator which lives in the browser | 15 // dispatched by the central memory coordinator which lives in the browser |
16 // process. | 16 // process. |
17 interface ChildMemoryCoordinator { | 17 interface ChildMemoryCoordinator { |
18 // Called when the central memory coodinator changes the state for child | 18 // Called when the central memory coodinator changes the state for child |
19 // processes. | 19 // processes. |
20 OnStateChange(MemoryState state); | 20 OnStateChange(MemoryState state); |
21 }; | 21 }; |
OLD | NEW |