| 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/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 | 8 |
| 9 namespace base { | 9 namespace base { |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 bool Process::EmptyWorkingSet() { | 38 bool Process::EmptyWorkingSet() { |
| 39 NOTIMPLEMENTED(); | 39 NOTIMPLEMENTED(); |
| 40 return false; | 40 return false; |
| 41 } | 41 } |
| 42 | 42 |
| 43 int32 Process::pid() const { | 43 int32 Process::pid() const { |
| 44 if (process_ == 0) | 44 if (process_ == 0) |
| 45 return 0; | 45 return 0; |
| 46 | 46 |
| 47 return process_util::GetProcId(process_); | 47 return GetProcId(process_); |
| 48 } | 48 } |
| 49 | 49 |
| 50 bool Process::is_current() const { | 50 bool Process::is_current() const { |
| 51 return process_ == process_util::GetCurrentProcessHandle(); | 51 return process_ == GetCurrentProcessHandle(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 // static | 54 // static |
| 55 Process Process::Current() { | 55 Process Process::Current() { |
| 56 return Process(process_util::GetCurrentProcessHandle()); | 56 return Process(GetCurrentProcessHandle()); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namspace base | 59 } // namspace base |
| OLD | NEW |