summaryrefslogtreecommitdiffstats
path: root/base/process_posix.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 17:29:39 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 17:29:39 +0000
commitb7d08200bdfac32163cadd007403791949a590f2 (patch)
treec279d1a45b2629bd893e08faf9c186e83d5136f5 /base/process_posix.cc
parent5f59be200e9fb98af1424b56f113dd9461dfc0e4 (diff)
downloadchromium_src-b7d08200bdfac32163cadd007403791949a590f2.zip
chromium_src-b7d08200bdfac32163cadd007403791949a590f2.tar.gz
chromium_src-b7d08200bdfac32163cadd007403791949a590f2.tar.bz2
Properly order the cc files based off the h files in base/.
BUG=68682 TEST=compiles Review URL: http://codereview.chromium.org/6385003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72505 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_posix.cc')
-rw-r--r--base/process_posix.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/base/process_posix.cc b/base/process_posix.cc
index ee70e5a..6e65ebf 100644
--- a/base/process_posix.cc
+++ b/base/process_posix.cc
@@ -13,6 +13,22 @@
namespace base {
+// static
+Process Process::Current() {
+ return Process(GetCurrentProcessHandle());
+}
+
+ProcessId Process::pid() const {
+ if (process_ == 0)
+ return 0;
+
+ return GetProcId(process_);
+}
+
+bool Process::is_current() const {
+ return process_ == GetCurrentProcessHandle();
+}
+
void Process::Close() {
process_ = 0;
// if the process wasn't terminated (so we waited) or the state
@@ -43,22 +59,6 @@ bool Process::SetProcessBackgrounded(bool value) {
}
#endif
-ProcessId Process::pid() const {
- if (process_ == 0)
- return 0;
-
- return GetProcId(process_);
-}
-
-bool Process::is_current() const {
- return process_ == GetCurrentProcessHandle();
-}
-
-// static
-Process Process::Current() {
- return Process(GetCurrentProcessHandle());
-}
-
int Process::GetPriority() const {
DCHECK(process_);
return getpriority(PRIO_PROCESS, process_);