| Index: chrome/browser/chromeos/arc/process/arc_process.h
|
| diff --git a/chrome/browser/chromeos/arc/process/arc_process.h b/chrome/browser/chromeos/arc/process/arc_process.h
|
| index f4ee65c687186e771038bd9f6f2b6f1c135e9a0d..a3b638bfa00cbd16ca1625e8955b0c3ff2a4094b 100644
|
| --- a/chrome/browser/chromeos/arc/process/arc_process.h
|
| +++ b/chrome/browser/chromeos/arc/process/arc_process.h
|
| @@ -39,6 +39,16 @@ class ArcProcess {
|
| std::vector<std::string>& packages() { return packages_; }
|
| const std::vector<std::string>& packages() const { return packages_; }
|
|
|
| + // Returns true if the process is likely visible to the user. When it is
|
| + // visible, Chrome should not kill the process.
|
| + bool IsUserVisible() const;
|
| +
|
| + // Returns true if it is okay for the kernel OOM killer to kill the process.
|
| + // TODO(cylee|yusukes): Check what stock Android does for handling OOM and
|
| + // adjust IsUserVisible() and/or IsKernelKillable() as needed.
|
| + // crbug.com/719537
|
| + bool IsKernelKillable() const;
|
| +
|
| private:
|
| base::ProcessId nspid_;
|
| base::ProcessId pid_;
|
|
|