| 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 #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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ChannelPosix(const IPC::ChannelHandle& channel_handle, Mode mode, | 56 ChannelPosix(const IPC::ChannelHandle& channel_handle, Mode mode, |
| 57 Listener* listener); | 57 Listener* listener); |
| 58 virtual ~ChannelPosix(); | 58 virtual ~ChannelPosix(); |
| 59 | 59 |
| 60 // Channel implementation | 60 // Channel implementation |
| 61 virtual bool Connect() OVERRIDE; | 61 virtual bool Connect() OVERRIDE; |
| 62 virtual void Close() OVERRIDE; | 62 virtual void Close() OVERRIDE; |
| 63 virtual bool Send(Message* message) OVERRIDE; | 63 virtual bool Send(Message* message) OVERRIDE; |
| 64 virtual base::ProcessId GetPeerPID() const OVERRIDE; | 64 virtual base::ProcessId GetPeerPID() const OVERRIDE; |
| 65 virtual base::ProcessId GetSelfPID() const OVERRIDE; | 65 virtual base::ProcessId GetSelfPID() const OVERRIDE; |
| 66 virtual ChannelHandle TakePipeHandle() OVERRIDE; | |
| 67 virtual int GetClientFileDescriptor() const OVERRIDE; | 66 virtual int GetClientFileDescriptor() const OVERRIDE; |
| 68 virtual int TakeClientFileDescriptor() OVERRIDE; | 67 virtual int TakeClientFileDescriptor() OVERRIDE; |
| 69 | 68 |
| 70 // Returns true if the channel supports listening for connections. | 69 // Returns true if the channel supports listening for connections. |
| 71 bool AcceptsConnections() const; | 70 bool AcceptsConnections() const; |
| 72 | 71 |
| 73 // Returns true if the channel supports listening for connections and is | 72 // Returns true if the channel supports listening for connections and is |
| 74 // currently connected. | 73 // currently connected. |
| 75 bool HasAcceptedConnection() const; | 74 bool HasAcceptedConnection() const; |
| 76 | 75 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // If non-zero, overrides the process ID sent in the hello message. | 217 // If non-zero, overrides the process ID sent in the hello message. |
| 219 static int global_pid_; | 218 static int global_pid_; |
| 220 #endif // OS_LINUX | 219 #endif // OS_LINUX |
| 221 | 220 |
| 222 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelPosix); | 221 DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelPosix); |
| 223 }; | 222 }; |
| 224 | 223 |
| 225 } // namespace IPC | 224 } // namespace IPC |
| 226 | 225 |
| 227 #endif // IPC_IPC_CHANNEL_POSIX_H_ | 226 #endif // IPC_IPC_CHANNEL_POSIX_H_ |
| OLD | NEW |