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

Side by Side Diff: ipc/ipc_channel_posix.h

Issue 2069009: chunk of straightforward ifdef/include changes for BSD port... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 | « no previous file | ipc/ipc_channel_posix.cc » ('j') | ipc/ipc_channel_posix.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // unused otherwise. 79 // unused otherwise.
80 int server_listen_pipe_; 80 int server_listen_pipe_;
81 81
82 // The pipe used for communication. 82 // The pipe used for communication.
83 int pipe_; 83 int pipe_;
84 84
85 // For a server, the client end of our socketpair() -- the other end of our 85 // For a server, the client end of our socketpair() -- the other end of our
86 // pipe_ that is passed to the client. 86 // pipe_ that is passed to the client.
87 int client_pipe_; 87 int client_pipe_;
88 88
89 #if defined(OS_LINUX) 89 #if !defined(OS_MACOSX)
90 // Linux uses a dedicated socketpair() for passing file descriptors. 90 // Linux/BSD use a dedicated socketpair() for passing file descriptors.
91 int fd_pipe_; 91 int fd_pipe_;
92 int remote_fd_pipe_; 92 int remote_fd_pipe_;
93 #endif 93 #endif
94 94
95 // The "name" of our pipe. On Windows this is the global identifier for 95 // The "name" of our pipe. On Windows this is the global identifier for
96 // the pipe. On POSIX it's used as a key in a local map of file descriptors. 96 // the pipe. On POSIX it's used as a key in a local map of file descriptors.
97 std::string pipe_name_; 97 std::string pipe_name_;
98 98
99 Listener* listener_; 99 Listener* listener_;
100 100
(...skipping 29 matching lines...) Expand all
130 bool waiting_connect_; 130 bool waiting_connect_;
131 131
132 ScopedRunnableMethodFactory<ChannelImpl> factory_; 132 ScopedRunnableMethodFactory<ChannelImpl> factory_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); 134 DISALLOW_COPY_AND_ASSIGN(ChannelImpl);
135 }; 135 };
136 136
137 } // namespace IPC 137 } // namespace IPC
138 138
139 #endif // IPC_IPC_CHANNEL_POSIX_H_ 139 #endif // IPC_IPC_CHANNEL_POSIX_H_
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_channel_posix.cc » ('j') | ipc/ipc_channel_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698