xref: /aosp_15_r20/external/cronet/base/process/process_handle_posix.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2013 The Chromium Authors
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 
GetCurrentProcId()11 ProcessId GetCurrentProcId() {
12   return getpid();
13 }
14 
GetCurrentProcessHandle()15 ProcessHandle GetCurrentProcessHandle() {
16   return GetCurrentProcId();
17 }
18 
GetProcId(ProcessHandle process)19 ProcessId GetProcId(ProcessHandle process) {
20   return process;
21 }
22 
23 }  // namespace base
24