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

Side by Side Diff: sandbox/linux/suid/process_util.h

Issue 7582007: Fixup bad include and usage of BASE_API, which should be BASE_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « net/proxy/proxy_config_service_linux.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // The following is duplicated from base/process_utils.h. 5 // The following is duplicated from base/process_utils.h.
6 // We shouldn't link against C++ code in a setuid binary. 6 // We shouldn't link against C++ code in a setuid binary.
7 7
8 #ifndef SANDBOX_LINUX_SUID_PROCESS_UTIL_H_ 8 #ifndef SANDBOX_LINUX_SUID_PROCESS_UTIL_H_
9 #define SANDBOX_LINUX_SUID_PROCESS_UTIL_H_ 9 #define SANDBOX_LINUX_SUID_PROCESS_UTIL_H_
10 10
11 #include <stdbool.h> 11 #include <stdbool.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 13
14 #include "base/base_api.h" 14 #include "base/base_export.h"
15 15
16 static const char kAdjustOOMScoreSwitch[] = "--adjust-oom-score"; 16 static const char kAdjustOOMScoreSwitch[] = "--adjust-oom-score";
17 17
18 // This adjusts /proc/process/oom_adj so the Linux OOM killer will prefer 18 // This adjusts /proc/process/oom_adj so the Linux OOM killer will prefer
19 // certain process types over others. The range for the adjustment is 19 // certain process types over others. The range for the adjustment is
20 // [-17,15], with [0,15] being user accessible. 20 // [-17,15], with [0,15] being user accessible.
21 BASE_API bool AdjustOOMScore(pid_t process, int score); 21 BASE_EXPORT bool AdjustOOMScore(pid_t process, int score);
22 22
23 #endif // SANDBOX_LINUX_SUID_PROCESS_UTIL_H_ 23 #endif // SANDBOX_LINUX_SUID_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698