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

Side by Side Diff: content/public/browser/zygote_host_linux.h

Issue 49843002: cros: Remove unused low memory margin code from sandbox and zygote (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_
6 #define CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_ 6 #define CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_
7 7
8 #include <unistd.h> 8 #include <unistd.h>
9 9
10 #include "base/process/process.h" 10 #include "base/process/process.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Returns an int which is a bitmask of kSandboxLinux* values. Only valid 32 // Returns an int which is a bitmask of kSandboxLinux* values. Only valid
33 // after the first render has been forked. 33 // after the first render has been forked.
34 virtual int GetSandboxStatus() const = 0; 34 virtual int GetSandboxStatus() const = 0;
35 35
36 // Adjust the OOM score of the given renderer's PID. The allowed 36 // Adjust the OOM score of the given renderer's PID. The allowed
37 // range for the score is [0, 1000], where higher values are more 37 // range for the score is [0, 1000], where higher values are more
38 // likely to be killed by the OOM killer. 38 // likely to be killed by the OOM killer.
39 virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle, 39 virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle,
40 int score) = 0; 40 int score) = 0;
41
42 // Adjust the point at which the low memory notifier in the kernel tells
43 // us that we're low on memory. When there is less than |margin_mb| left,
44 // then the notifier will notify us. Set |margin_mb| to -1 to turn off
45 // low memory notification altogether.
46 virtual void AdjustLowMemoryMargin(int64 margin_mb) = 0;
47 }; 41 };
48 42
49 } // namespace content 43 } // namespace content
50 44
51 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_ 45 #endif // CONTENT_PUBLIC_BROWSER_ZYGOTE_HOST_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | sandbox/linux/suid/common/sandbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698