Chromium Code Reviews| Index: ipc/ipc_channel_nacl.h |
| =================================================================== |
| --- ipc/ipc_channel_nacl.h (revision 132566) |
| +++ ipc/ipc_channel_nacl.h (working copy) |
| @@ -7,6 +7,7 @@ |
| #pragma once |
| #include "ipc/ipc_channel.h" |
| +#include "ipc/ipc_channel_reader.h" |
| namespace IPC { |
| @@ -25,7 +26,7 @@ |
| bool Connect(); |
| void Close(); |
| bool Send(Message* message); |
| - int GetClientFileDescriptor() const; |
|
dmichael (off chromium)
2012/04/23 14:51:11
Why non-const? I'd rather leave it as-is if possib
bbudge
2012/04/23 17:46:09
Good catch, I removed it erroneously while chasing
|
| + int GetClientFileDescriptor(); |
| int TakeClientFileDescriptor(); |
| bool AcceptsConnections() const; |
| bool HasAcceptedConnection() const; |
| @@ -33,6 +34,13 @@ |
| void ResetToAcceptingConnectionState(); |
| static bool IsNamedServerInitialized(const std::string& channel_id); |
| + virtual ReadState ReadData(char* buffer, |
| + int buffer_len, |
| + int* bytes_read) OVERRIDE; |
| + virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE; |
| + virtual bool DidEmptyInputBuffers() OVERRIDE; |
| + virtual void HandleHelloMessage(const Message& msg) OVERRIDE; |
| + |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelImpl); |
| }; |