OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/process.h" | 5 #include "base/process.h" |
6 #include "base/process_util.h" | 6 #include "base/process_util.h" |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 | 9 |
10 void Process::Close() { | 10 void Process::Close() { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 bool Process::UnReduceWorkingSet() { | 43 bool Process::UnReduceWorkingSet() { |
44 // http://code.google.com/p/chromium/issues/detail?id=8083 | 44 // http://code.google.com/p/chromium/issues/detail?id=8083 |
45 return false; | 45 return false; |
46 } | 46 } |
47 | 47 |
48 bool Process::EmptyWorkingSet() { | 48 bool Process::EmptyWorkingSet() { |
49 // http://code.google.com/p/chromium/issues/detail?id=8083 | 49 // http://code.google.com/p/chromium/issues/detail?id=8083 |
50 return false; | 50 return false; |
51 } | 51 } |
52 | 52 |
53 int32 Process::pid() const { | 53 ProcessId Process::pid() const { |
54 if (process_ == 0) | 54 if (process_ == 0) |
55 return 0; | 55 return 0; |
56 | 56 |
57 return GetProcId(process_); | 57 return GetProcId(process_); |
58 } | 58 } |
59 | 59 |
60 bool Process::is_current() const { | 60 bool Process::is_current() const { |
61 return process_ == GetCurrentProcessHandle(); | 61 return process_ == GetCurrentProcessHandle(); |
62 } | 62 } |
63 | 63 |
64 // static | 64 // static |
65 Process Process::Current() { | 65 Process Process::Current() { |
66 return Process(GetCurrentProcessHandle()); | 66 return Process(GetCurrentProcessHandle()); |
67 } | 67 } |
68 | 68 |
69 } // namspace base | 69 } // namspace base |
OLD | NEW |