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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 // should not receive the "Hello" message. | 378 // should not receive the "Hello" message. |
379 NOTREACHED(); | 379 NOTREACHED(); |
380 } | 380 } |
381 | 381 |
382 base::ProcessId ChannelNacl::GetSenderPID() { | 382 base::ProcessId ChannelNacl::GetSenderPID() { |
383 // The untrusted side of the IPC::Channel should never have to worry about | 383 // The untrusted side of the IPC::Channel should never have to worry about |
384 // sender's process id. | 384 // sender's process id. |
385 return base::kNullProcessId; | 385 return base::kNullProcessId; |
386 } | 386 } |
387 | 387 |
| 388 bool ChannelNacl::IsAttachmentBrokerEndpoint() { |
| 389 return is_attachment_broker_endpoint(); |
| 390 } |
| 391 |
388 // Channel's methods | 392 // Channel's methods |
389 | 393 |
390 // static | 394 // static |
391 scoped_ptr<Channel> Channel::Create(const IPC::ChannelHandle& channel_handle, | 395 scoped_ptr<Channel> Channel::Create(const IPC::ChannelHandle& channel_handle, |
392 Mode mode, | 396 Mode mode, |
393 Listener* listener, | 397 Listener* listener, |
394 AttachmentBroker* broker) { | 398 AttachmentBroker* broker) { |
395 return scoped_ptr<Channel>( | 399 return scoped_ptr<Channel>( |
396 new ChannelNacl(channel_handle, mode, listener, broker)); | 400 new ChannelNacl(channel_handle, mode, listener, broker)); |
397 } | 401 } |
398 | 402 |
399 } // namespace IPC | 403 } // namespace IPC |
OLD | NEW |