diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 21:18:19 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 21:18:19 +0000 |
commit | fe5d406f982a080ff3b8a503d6b487f16c812d48 (patch) | |
tree | 77595f2b8f7e136562deedba553339ea2028568b /ipc/ipc_channel_nacl.cc | |
parent | de1d2f80e33170f57c942e4950b1a75d4056a127 (diff) | |
download | chromium_src-fe5d406f982a080ff3b8a503d6b487f16c812d48.zip chromium_src-fe5d406f982a080ff3b8a503d6b487f16c812d48.tar.gz chromium_src-fe5d406f982a080ff3b8a503d6b487f16c812d48.tar.bz2 |
Add ipc_channel_nacl to the untrusted build and fix all compile/link errors.
ppapi_proxy_untrusted.gyp should now build with a single link error for main.
BUG=116317
TEST=builds with a single link error for main().
Review URL: https://chromiumcodereview.appspot.com/10167024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_nacl.cc')
-rw-r--r-- | ipc/ipc_channel_nacl.cc | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc index 0d929db..683353e 100644 --- a/ipc/ipc_channel_nacl.cc +++ b/ipc/ipc_channel_nacl.cc @@ -12,62 +12,80 @@ namespace IPC { -ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle, +Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle, Mode mode, Listener* listener) : ChannelReader(listener) { } -ChannelImpl::~ChannelImpl() { +Channel::ChannelImpl::~ChannelImpl() { Close(); } -bool ChannelImpl::Connect() { +bool Channel::ChannelImpl::Connect() { NOTIMPLEMENTED(); return false; } -void ChannelImpl::Close() { +void Channel::ChannelImpl::Close() { NOTIMPLEMENTED(); } -bool ChannelImpl::Send(Message* message) { +bool Channel::ChannelImpl::Send(Message* message) { NOTIMPLEMENTED(); } -int ChannelImpl::GetClientFileDescriptor() const { +int Channel::ChannelImpl::GetClientFileDescriptor() const { NOTIMPLEMENTED(); return -1; } -int ChannelImpl::TakeClientFileDescriptor() { +int Channel::ChannelImpl::TakeClientFileDescriptor() { NOTIMPLEMENTED(); return -1; } -bool ChannelImpl::AcceptsConnections() const { +bool Channel::ChannelImpl::AcceptsConnections() const { NOTIMPLEMENTED(); return false; } -bool ChannelImpl::HasAcceptedConnection() const { +bool Channel::ChannelImpl::HasAcceptedConnection() const { NOTIMPLEMENTED(); return false; } -bool ChannelImpl::GetClientEuid(uid_t* client_euid) const { +bool Channel::ChannelImpl::GetClientEuid(uid_t* client_euid) const { NOTIMPLEMENTED(); return false; } -void ChannelImpl::ResetToAcceptingConnectionState() { +void Channel::ChannelImpl::ResetToAcceptingConnectionState() { NOTIMPLEMENTED(); } +Channel::ChannelImpl::ReadState + Channel::ChannelImpl::ReadData(char* buffer, + int buffer_len, + int* bytes_read) { + return Channel::ChannelImpl::ReadState(); +} + +bool Channel::ChannelImpl::WillDispatchInputMessage(Message* msg) { + return false; +} + +bool Channel::ChannelImpl::DidEmptyInputBuffers() { + return false; +} + +void Channel::ChannelImpl::HandleHelloMessage(const Message& msg) { +} + // static bool Channel::ChannelImpl::IsNamedServerInitialized( const std::string& channel_id) { - return file_util::PathExists(FilePath(channel_id)); + return false; //file_util::PathExists(FilePath(channel_id)); } //------------------------------------------------------------------------------ @@ -123,6 +141,8 @@ void Channel::ResetToAcceptingConnectionState() { channel_impl_->ResetToAcceptingConnectionState(); } +base::ProcessId Channel::peer_pid() const { return 0; } + // static bool Channel::IsNamedServerInitialized(const std::string& channel_id) { return ChannelImpl::IsNamedServerInitialized(channel_id); |