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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // When the input data buffer is empty, the fds should be too. | 367 // When the input data buffer is empty, the fds should be too. |
368 return input_fds_.empty(); | 368 return input_fds_.empty(); |
369 } | 369 } |
370 | 370 |
371 void ChannelNacl::HandleInternalMessage(const Message& msg) { | 371 void ChannelNacl::HandleInternalMessage(const Message& msg) { |
372 // The trusted side IPC::Channel should handle the "hello" handshake; we | 372 // The trusted side IPC::Channel should handle the "hello" handshake; we |
373 // should not receive the "Hello" message. | 373 // should not receive the "Hello" message. |
374 NOTREACHED(); | 374 NOTREACHED(); |
375 } | 375 } |
376 | 376 |
| 377 void ChannelNacl::OnClientLaunched(base::ProcessHandle handle) { |
| 378 } |
| 379 |
377 // Channel's methods | 380 // Channel's methods |
378 | 381 |
379 // static | 382 // static |
380 scoped_ptr<Channel> Channel::Create( | 383 scoped_ptr<Channel> Channel::Create( |
381 const IPC::ChannelHandle &channel_handle, Mode mode, Listener* listener) { | 384 const IPC::ChannelHandle &channel_handle, Mode mode, Listener* listener) { |
382 return scoped_ptr<Channel>( | 385 return scoped_ptr<Channel>( |
383 new ChannelNacl(channel_handle, mode, listener)); | 386 new ChannelNacl(channel_handle, mode, listener)); |
384 } | 387 } |
385 | 388 |
386 } // namespace IPC | 389 } // namespace IPC |
OLD | NEW |