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 <stdint.h> | 10 #include <stdint.h> |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "base/logging.h" | 33 #include "base/logging.h" |
34 #include "base/memory/scoped_ptr.h" | 34 #include "base/memory/scoped_ptr.h" |
35 #include "base/memory/singleton.h" | 35 #include "base/memory/singleton.h" |
36 #include "base/posix/eintr_wrapper.h" | 36 #include "base/posix/eintr_wrapper.h" |
37 #include "base/posix/global_descriptors.h" | 37 #include "base/posix/global_descriptors.h" |
38 #include "base/process/process_handle.h" | 38 #include "base/process/process_handle.h" |
39 #include "base/rand_util.h" | 39 #include "base/rand_util.h" |
40 #include "base/stl_util.h" | 40 #include "base/stl_util.h" |
41 #include "base/strings/string_util.h" | 41 #include "base/strings/string_util.h" |
42 #include "base/synchronization/lock.h" | 42 #include "base/synchronization/lock.h" |
| 43 #include "build/build_config.h" |
43 #include "ipc/attachment_broker.h" | 44 #include "ipc/attachment_broker.h" |
44 #include "ipc/ipc_descriptors.h" | 45 #include "ipc/ipc_descriptors.h" |
45 #include "ipc/ipc_listener.h" | 46 #include "ipc/ipc_listener.h" |
46 #include "ipc/ipc_logging.h" | 47 #include "ipc/ipc_logging.h" |
47 #include "ipc/ipc_message_attachment_set.h" | 48 #include "ipc/ipc_message_attachment_set.h" |
48 #include "ipc/ipc_message_utils.h" | 49 #include "ipc/ipc_message_utils.h" |
49 #include "ipc/ipc_platform_file_attachment_posix.h" | 50 #include "ipc/ipc_platform_file_attachment_posix.h" |
50 #include "ipc/ipc_switches.h" | 51 #include "ipc/ipc_switches.h" |
51 #include "ipc/unix_domain_socket_util.h" | 52 #include "ipc/unix_domain_socket_util.h" |
52 | 53 |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 } | 1121 } |
1121 | 1122 |
1122 #if defined(OS_LINUX) | 1123 #if defined(OS_LINUX) |
1123 // static | 1124 // static |
1124 void Channel::SetGlobalPid(int pid) { | 1125 void Channel::SetGlobalPid(int pid) { |
1125 ChannelPosix::SetGlobalPid(pid); | 1126 ChannelPosix::SetGlobalPid(pid); |
1126 } | 1127 } |
1127 #endif // OS_LINUX | 1128 #endif // OS_LINUX |
1128 | 1129 |
1129 } // namespace IPC | 1130 } // namespace IPC |
OLD | NEW |