| 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 #include "ipc/ipc_channel_nacl.h" | 5 #include "ipc/ipc_channel_nacl.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 header_fds); | 337 header_fds); |
| 338 input_fds_.clear(); | 338 input_fds_.clear(); |
| 339 return true; | 339 return true; |
| 340 } | 340 } |
| 341 | 341 |
| 342 bool Channel::ChannelImpl::DidEmptyInputBuffers() { | 342 bool Channel::ChannelImpl::DidEmptyInputBuffers() { |
| 343 // When the input data buffer is empty, the fds should be too. | 343 // When the input data buffer is empty, the fds should be too. |
| 344 return input_fds_.empty(); | 344 return input_fds_.empty(); |
| 345 } | 345 } |
| 346 | 346 |
| 347 void Channel::ChannelImpl::HandleHelloMessage(const Message& msg) { | 347 void Channel::ChannelImpl::HandleInternalMessage(const Message& msg) { |
| 348 // The trusted side IPC::Channel should handle the "hello" handshake; we | 348 // The trusted side IPC::Channel should handle the "hello" handshake; we |
| 349 // should not receive the "Hello" message. | 349 // should not receive the "Hello" message. |
| 350 NOTREACHED(); | 350 NOTREACHED(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 //------------------------------------------------------------------------------ | 353 //------------------------------------------------------------------------------ |
| 354 // Channel's methods simply call through to ChannelImpl. | 354 // Channel's methods simply call through to ChannelImpl. |
| 355 | 355 |
| 356 Channel::Channel(const IPC::ChannelHandle& channel_handle, | 356 Channel::Channel(const IPC::ChannelHandle& channel_handle, |
| 357 Mode mode, | 357 Mode mode, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 375 // This shouldn't actually get used in the untrusted side of the proxy, and we | 375 // This shouldn't actually get used in the untrusted side of the proxy, and we |
| 376 // don't have the real pid anyway. | 376 // don't have the real pid anyway. |
| 377 return -1; | 377 return -1; |
| 378 } | 378 } |
| 379 | 379 |
| 380 bool Channel::Send(Message* message) { | 380 bool Channel::Send(Message* message) { |
| 381 return channel_impl_->Send(message); | 381 return channel_impl_->Send(message); |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace IPC | 384 } // namespace IPC |
| OLD | NEW |