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

Side by Side Diff: ipc/ipc_channel_posix.h

Issue 19607005: Use a direct include of the message_loop header in dbus/, device/, extensions/, google_apis/, gpu/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_factory.h ('k') | ipc/ipc_channel_posix_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 #ifndef IPC_IPC_CHANNEL_POSIX_H_ 5 #ifndef IPC_IPC_CHANNEL_POSIX_H_
6 #define IPC_IPC_CHANNEL_POSIX_H_ 6 #define IPC_IPC_CHANNEL_POSIX_H_
7 7
8 #include "ipc/ipc_channel.h" 8 #include "ipc/ipc_channel.h"
9 9
10 #include <sys/socket.h> // for CMSG macros 10 #include <sys/socket.h> // for CMSG macros
11 11
12 #include <queue> 12 #include <queue>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/process.h" 17 #include "base/process.h"
18 #include "ipc/file_descriptor_set_posix.h" 18 #include "ipc/file_descriptor_set_posix.h"
19 #include "ipc/ipc_channel_reader.h" 19 #include "ipc/ipc_channel_reader.h"
20 20
21 #if !defined(OS_MACOSX) 21 #if !defined(OS_MACOSX)
22 // On Linux, the seccomp sandbox makes it very expensive to call 22 // On Linux, the seccomp sandbox makes it very expensive to call
23 // recvmsg() and sendmsg(). The restriction on calling read() and write(), which 23 // recvmsg() and sendmsg(). The restriction on calling read() and write(), which
24 // are cheap, is that we can't pass file descriptors over them. 24 // are cheap, is that we can't pass file descriptors over them.
25 // 25 //
26 // As we cannot anticipate when the sender will provide us with file 26 // As we cannot anticipate when the sender will provide us with file
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // If non-zero, overrides the process ID sent in the hello message. 191 // If non-zero, overrides the process ID sent in the hello message.
192 static int global_pid_; 192 static int global_pid_;
193 #endif // OS_LINUX 193 #endif // OS_LINUX
194 194
195 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelImpl); 195 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelImpl);
196 }; 196 };
197 197
198 } // namespace IPC 198 } // namespace IPC
199 199
200 #endif // IPC_IPC_CHANNEL_POSIX_H_ 200 #endif // IPC_IPC_CHANNEL_POSIX_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_factory.h ('k') | ipc/ipc_channel_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698