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

Side by Side Diff: ipc/ipc_channel.h

Issue 10167024: Add ipc_channel_nacl to the untrusted build and fix all compile/link errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
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_H_ 5 #ifndef IPC_IPC_CHANNEL_H_
6 #define IPC_IPC_CHANNEL_H_ 6 #define IPC_IPC_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Get the process ID for the connected peer. 153 // Get the process ID for the connected peer.
154 // Returns base::kNullProcessId if the peer is not connected yet. 154 // Returns base::kNullProcessId if the peer is not connected yet.
155 base::ProcessId peer_pid() const; 155 base::ProcessId peer_pid() const;
156 156
157 // Send a message over the Channel to the listener on the other end. 157 // Send a message over the Channel to the listener on the other end.
158 // 158 //
159 // |message| must be allocated using operator new. This object will be 159 // |message| must be allocated using operator new. This object will be
160 // deleted once the contents of the Message have been sent. 160 // deleted once the contents of the Message have been sent.
161 virtual bool Send(Message* message) OVERRIDE; 161 virtual bool Send(Message* message) OVERRIDE;
162 162
163 #if defined(OS_POSIX) && !defined(OS_NACL) 163 #if defined(OS_POSIX)
164 // On POSIX an IPC::Channel wraps a socketpair(), this method returns the 164 // On POSIX an IPC::Channel wraps a socketpair(), this method returns the
165 // FD # for the client end of the socket. 165 // FD # for the client end of the socket.
166 // This method may only be called on the server side of a channel. 166 // This method may only be called on the server side of a channel.
167 // This method can be called on any thread. 167 // This method can be called on any thread.
168 int GetClientFileDescriptor() const; 168 int GetClientFileDescriptor() const;
169 169
170 // Same as GetClientFileDescriptor, but transfers the ownership of the 170 // Same as GetClientFileDescriptor, but transfers the ownership of the
171 // file descriptor to the caller. 171 // file descriptor to the caller.
172 // This method can be called on any thread. 172 // This method can be called on any thread.
173 int TakeClientFileDescriptor(); 173 int TakeClientFileDescriptor();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 private: 223 private:
224 // PIMPL to which all channel calls are delegated. 224 // PIMPL to which all channel calls are delegated.
225 class ChannelImpl; 225 class ChannelImpl;
226 ChannelImpl *channel_impl_; 226 ChannelImpl *channel_impl_;
227 }; 227 };
228 228
229 } // namespace IPC 229 } // namespace IPC
230 230
231 #endif // IPC_IPC_CHANNEL_H_ 231 #endif // IPC_IPC_CHANNEL_H_
OLDNEW
« no previous file with comments | « base/tracked_objects.cc ('k') | ipc/ipc_channel.cc » ('j') | ipc/ipc_channel_nacl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698