diff options
author | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 01:20:30 +0000 |
---|---|---|
committer | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 01:20:30 +0000 |
commit | 5d4dc8a5c5f9dd43a637bc09645289055accbfb7 (patch) | |
tree | 663d5d15a5af024c50f8ed5cc468845d9f919692 /chrome/browser/zygote_host_linux.h | |
parent | cd8d237c83f5fcd1fc0d06e9fdd840fb4e24ac94 (diff) | |
download | chromium_src-5d4dc8a5c5f9dd43a637bc09645289055accbfb7.zip chromium_src-5d4dc8a5c5f9dd43a637bc09645289055accbfb7.tar.gz chromium_src-5d4dc8a5c5f9dd43a637bc09645289055accbfb7.tar.bz2 |
Adding OOM priority management for renderers on ChromeOS.
[I actually did this two months ago, and though I had committed it, but
due to the "git cl push" vs "git cl dcommit" craziness, it was never
in the tree.]
It was previously reviewed and LGTM'd here:
http://codereview.chromium.org/3235007/show
BUG=none
TEST=Tested on device, both using large numbers of tabs, and
small tabs that used lots of memory.
Review URL: http://codereview.chromium.org/4446002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/zygote_host_linux.h')
-rw-r--r-- | chrome/browser/zygote_host_linux.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/zygote_host_linux.h b/chrome/browser/zygote_host_linux.h index dd00336..ffb7964 100644 --- a/chrome/browser/zygote_host_linux.h +++ b/chrome/browser/zygote_host_linux.h @@ -67,6 +67,9 @@ class ZygoteHost { return 0; } + // Adjust the OOM score of the given renderer's PID. + void AdjustRendererOOMScore(base::ProcessHandle process_handle, int score); + private: friend struct DefaultSingletonTraits<ZygoteHost>; ZygoteHost(); |