| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ipc/ipc_channel_posix.h" | 5 #include "ipc/ipc_channel_posix.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <sys/socket.h> | 10 #include <sys/socket.h> |
| 11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
| 12 #include <sys/types.h> | 12 #include <sys/types.h> |
| 13 #include <sys/un.h> | 13 #include <sys/un.h> |
| 14 #include <unistd.h> | 14 #include <unistd.h> |
| 15 | 15 |
| 16 #if defined(OS_OPENBSD) | 16 #if defined(OS_OPENBSD) |
| 17 #include <sys/uio.h> | 17 #include <sys/uio.h> |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #include <map> | 20 #include <map> |
| 21 #include <string> | 21 #include <string> |
| 22 | 22 |
| 23 #include "base/command_line.h" | 23 #include "base/command_line.h" |
| 24 #include "base/file_util.h" | |
| 25 #include "base/files/file_path.h" | 24 #include "base/files/file_path.h" |
| 25 #include "base/files/file_util.h" |
| 26 #include "base/location.h" | 26 #include "base/location.h" |
| 27 #include "base/logging.h" | 27 #include "base/logging.h" |
| 28 #include "base/memory/scoped_ptr.h" | 28 #include "base/memory/scoped_ptr.h" |
| 29 #include "base/memory/singleton.h" | 29 #include "base/memory/singleton.h" |
| 30 #include "base/posix/eintr_wrapper.h" | 30 #include "base/posix/eintr_wrapper.h" |
| 31 #include "base/posix/global_descriptors.h" | 31 #include "base/posix/global_descriptors.h" |
| 32 #include "base/process/process_handle.h" | 32 #include "base/process/process_handle.h" |
| 33 #include "base/rand_util.h" | 33 #include "base/rand_util.h" |
| 34 #include "base/stl_util.h" | 34 #include "base/stl_util.h" |
| 35 #include "base/strings/string_util.h" | 35 #include "base/strings/string_util.h" |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 #if defined(OS_LINUX) | 1092 #if defined(OS_LINUX) |
| 1093 // static | 1093 // static |
| 1094 void Channel::SetGlobalPid(int pid) { | 1094 void Channel::SetGlobalPid(int pid) { |
| 1095 ChannelPosix::SetGlobalPid(pid); | 1095 ChannelPosix::SetGlobalPid(pid); |
| 1096 } | 1096 } |
| 1097 #endif // OS_LINUX | 1097 #endif // OS_LINUX |
| 1098 | 1098 |
| 1099 } // namespace IPC | 1099 } // namespace IPC |
| OLD | NEW |