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 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 } | 1247 } |
1247 | 1248 |
1248 #if defined(OS_LINUX) | 1249 #if defined(OS_LINUX) |
1249 // static | 1250 // static |
1250 void Channel::SetGlobalPid(int pid) { | 1251 void Channel::SetGlobalPid(int pid) { |
1251 ChannelImpl::SetGlobalPid(pid); | 1252 ChannelImpl::SetGlobalPid(pid); |
1252 } | 1253 } |
1253 #endif // OS_LINUX | 1254 #endif // OS_LINUX |
1254 | 1255 |
1255 } // namespace IPC | 1256 } // namespace IPC |
OLD | NEW |