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> |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 } | 894 } |
895 | 895 |
896 default: | 896 default: |
897 NOTREACHED(); | 897 NOTREACHED(); |
898 break; | 898 break; |
899 } | 899 } |
900 } | 900 } |
901 | 901 |
902 void ChannelPosix::HandleInternalMessage(const Message& msg) { | 902 void ChannelPosix::HandleInternalMessage(const Message& msg) { |
903 // The Hello message contains only the process id. | 903 // The Hello message contains only the process id. |
904 PickleIterator iter(msg); | 904 base::PickleIterator iter(msg); |
905 | 905 |
906 switch (msg.type()) { | 906 switch (msg.type()) { |
907 default: | 907 default: |
908 NOTREACHED(); | 908 NOTREACHED(); |
909 break; | 909 break; |
910 | 910 |
911 case Channel::HELLO_MESSAGE_TYPE: | 911 case Channel::HELLO_MESSAGE_TYPE: |
912 int pid; | 912 int pid; |
913 if (!iter.ReadInt(&pid)) | 913 if (!iter.ReadInt(&pid)) |
914 NOTREACHED(); | 914 NOTREACHED(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 } | 1018 } |
1019 | 1019 |
1020 #if defined(OS_LINUX) | 1020 #if defined(OS_LINUX) |
1021 // static | 1021 // static |
1022 void Channel::SetGlobalPid(int pid) { | 1022 void Channel::SetGlobalPid(int pid) { |
1023 ChannelPosix::SetGlobalPid(pid); | 1023 ChannelPosix::SetGlobalPid(pid); |
1024 } | 1024 } |
1025 #endif // OS_LINUX | 1025 #endif // OS_LINUX |
1026 | 1026 |
1027 } // namespace IPC | 1027 } // namespace IPC |
OLD | NEW |