OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Next MinVersion: 3 | 5 // Next MinVersion: 4 |
6 | 6 |
7 module arc; | 7 module arc; |
8 | 8 |
9 // Describes the current process state, as defined by AOSP in | 9 // Describes the current process state, as defined by AOSP in |
10 // android.app.ActivityManager. | 10 // android.app.ActivityManager. |
11 enum ProcessState { | 11 enum ProcessState { |
12 // Process does not exist. | 12 // Process does not exist. |
13 NONEXISTENT = -1, | 13 NONEXISTENT = -1, |
14 | 14 |
15 // Process is a persistent system process. | 15 // Process is a persistent system process. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 }; | 87 }; |
88 | 88 |
89 interface ProcessInstance { | 89 interface ProcessInstance { |
90 // Requests ARC instance to return the current process list. | 90 // Requests ARC instance to return the current process list. |
91 RequestProcessList() => (array<RunningAppProcessInfo> processes); | 91 RequestProcessList() => (array<RunningAppProcessInfo> processes); |
92 | 92 |
93 // Requests ARC instance to kill a process. | 93 // Requests ARC instance to kill a process. |
94 [MinVersion=1] | 94 [MinVersion=1] |
95 KillProcess(uint32 pid, string reason); | 95 KillProcess(uint32 pid, string reason); |
96 | 96 |
97 // Set oom_score_adj of a process. | 97 // Sets oom_score_adj of a process. |
98 [MinVersion=2] | 98 [MinVersion=2] |
99 SetOomScoreAdj(uint32 pid, int32 score); | 99 SetOomScoreAdj(uint32 pid, int32 score); |
100 | 100 |
101 // Disable android built-in oom_adj adjustment. | 101 // Disables Android built-in oom_adj adjustment. |
102 // After calling this method, Chrome will take over OOM scores management, | |
103 // namely oom_score_adj settings. | |
104 [MinVersion=2] | 102 [MinVersion=2] |
105 DisableBuiltinOomAdjustment(); | 103 DisableBuiltinOomAdjustment(); |
104 | |
105 // Disables Android lowmemorykiller. | |
106 [MinVersion=3] | |
107 DisableLowMemoryKiller(); | |
mdempsky
2016/04/16 01:33:27
Shouldn't this CL also include an implementation o
cylee1
2016/04/18 09:34:35
This is a mojo interface definition file. The impl
Luis Héctor Chávez
2016/04/19 22:33:35
For future reviews: All methods in components/arc/
| |
106 }; | 108 }; |
OLD | NEW |