[email protected] | 992a6065 | 2013-07-15 18:29:35 | [diff] [blame] | 1 | // Copyright (c) 2013 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/process_handle.h" |
| 6 | |
| 7 | #include <unistd.h> |
| 8 | |
| 9 | namespace base { |
| 10 | |
| 11 | ProcessId GetCurrentProcId() { |
| 12 | return getpid(); |
| 13 | } |
| 14 | |
| 15 | ProcessHandle GetCurrentProcessHandle() { |
| 16 | return GetCurrentProcId(); |
| 17 | } |
| 18 | |
[email protected] | 992a6065 | 2013-07-15 18:29:35 | [diff] [blame] | 19 | ProcessId GetProcId(ProcessHandle process) { |
| 20 | return process; |
| 21 | } |
| 22 | |
| 23 | } // namespace base |