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

Side by Side Diff: content/common/child_memory_coordinator.mojom

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698