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

Side by Side Diff: base/process_posix.cc

Issue 6492: Port parts of base/process_util to Linux. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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
OLDNEW
(Empty)
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/process.h"
6 #include "base/logging.h"
7 #include "base/process_util.h"
8
9 bool Process::IsProcessBackgrounded() {
10 return false;
11 }
12
13 bool Process::SetProcessBackgrounded(bool value) {
14 NOTIMPLEMENTED();
15 return false;
16 }
17
18 bool Process::ReduceWorkingSet() {
19 NOTIMPLEMENTED();
20 return false;
21 }
22
23 bool Process::UnReduceWorkingSet() {
24 NOTIMPLEMENTED();
25 return false;
26 }
27
28 bool Process::EmptyWorkingSet() {
29 NOTIMPLEMENTED();
30 return false;
31 }
32
33 int32 Process::pid() const {
34 if (process_ == 0)
35 return 0;
36
37 return process_util::GetProcId(process_);
38 }
39
40 bool Process::is_current() const {
41 return process_ == process_util::GetCurrentProcessHandle();
42 }
43
44 // static
45 Process Process::Current() {
46 return Process(process_util::GetCurrentProcessHandle());
47 }
48
OLDNEW
« no previous file with comments | « base/process.cc ('k') | base/process_util.h » ('j') | base/process_util_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698