| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/types.h> | 10 #include <sys/types.h> |
| 11 #include <sys/socket.h> | 11 #include <sys/socket.h> |
| 12 #include <sys/stat.h> | 12 #include <sys/stat.h> |
| 13 #include <sys/un.h> | 13 #include <sys/un.h> |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 #include <map> | 16 #include <map> |
| 17 | 17 |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/eintr_wrapper.h" | 19 #include "base/eintr_wrapper.h" |
| 20 #include "base/file_path.h" | 20 #include "base/file_path.h" |
| 21 #include "base/file_util.h" | 21 #include "base/file_util.h" |
| 22 #include "base/global_descriptors_posix.h" | 22 #include "base/global_descriptors_posix.h" |
| 23 #include "base/location.h" |
| 23 #include "base/logging.h" | 24 #include "base/logging.h" |
| 24 #include "base/memory/scoped_ptr.h" | 25 #include "base/memory/scoped_ptr.h" |
| 25 #include "base/memory/singleton.h" | 26 #include "base/memory/singleton.h" |
| 26 #include "base/process_util.h" | 27 #include "base/process_util.h" |
| 27 #include "base/stl_util.h" | 28 #include "base/stl_util.h" |
| 28 #include "base/string_util.h" | 29 #include "base/string_util.h" |
| 29 #include "base/synchronization/lock.h" | 30 #include "base/synchronization/lock.h" |
| 30 #include "ipc/ipc_descriptors.h" | 31 #include "ipc/ipc_descriptors.h" |
| 31 #include "ipc/ipc_switches.h" | 32 #include "ipc/ipc_switches.h" |
| 32 #include "ipc/file_descriptor_set_posix.h" | 33 #include "ipc/file_descriptor_set_posix.h" |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 } | 1233 } |
| 1233 | 1234 |
| 1234 #if defined(OS_LINUX) | 1235 #if defined(OS_LINUX) |
| 1235 // static | 1236 // static |
| 1236 void Channel::SetGlobalPid(int pid) { | 1237 void Channel::SetGlobalPid(int pid) { |
| 1237 ChannelImpl::SetGlobalPid(pid); | 1238 ChannelImpl::SetGlobalPid(pid); |
| 1238 } | 1239 } |
| 1239 #endif // OS_LINUX | 1240 #endif // OS_LINUX |
| 1240 | 1241 |
| 1241 } // namespace IPC | 1242 } // namespace IPC |
| OLD | NEW |