Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: ipc/ipc_channel_posix.cc

Issue 1154283003: Change most uses of Pickle to base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | ipc/ipc_channel_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits.cc ('k') | ipc/ipc_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698