| 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_proxy.h" | 5 #include "ipc/ipc_channel_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 DCHECK(CalledOnValidThread()); | 479 DCHECK(CalledOnValidThread()); |
| 480 | 480 |
| 481 context()->ClearIPCTaskRunner(); | 481 context()->ClearIPCTaskRunner(); |
| 482 } | 482 } |
| 483 | 483 |
| 484 base::ProcessId ChannelProxy::GetPeerPID() const { | 484 base::ProcessId ChannelProxy::GetPeerPID() const { |
| 485 return context_->peer_pid_; | 485 return context_->peer_pid_; |
| 486 } | 486 } |
| 487 | 487 |
| 488 void ChannelProxy::OnSetAttachmentBrokerEndpoint() { | 488 void ChannelProxy::OnSetAttachmentBrokerEndpoint() { |
| 489 CHECK(!did_init_); |
| 489 context()->set_attachment_broker_endpoint(is_attachment_broker_endpoint()); | 490 context()->set_attachment_broker_endpoint(is_attachment_broker_endpoint()); |
| 490 } | 491 } |
| 491 | 492 |
| 492 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) | 493 #if defined(OS_POSIX) && !defined(OS_NACL_SFI) |
| 493 // See the TODO regarding lazy initialization of the channel in | 494 // See the TODO regarding lazy initialization of the channel in |
| 494 // ChannelProxy::Init(). | 495 // ChannelProxy::Init(). |
| 495 int ChannelProxy::GetClientFileDescriptor() { | 496 int ChannelProxy::GetClientFileDescriptor() { |
| 496 DCHECK(CalledOnValidThread()); | 497 DCHECK(CalledOnValidThread()); |
| 497 | 498 |
| 498 Channel* channel = context_.get()->channel_.get(); | 499 Channel* channel = context_.get()->channel_.get(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 510 return channel->TakeClientFileDescriptor(); | 511 return channel->TakeClientFileDescriptor(); |
| 511 } | 512 } |
| 512 #endif | 513 #endif |
| 513 | 514 |
| 514 void ChannelProxy::OnChannelInit() { | 515 void ChannelProxy::OnChannelInit() { |
| 515 } | 516 } |
| 516 | 517 |
| 517 //----------------------------------------------------------------------------- | 518 //----------------------------------------------------------------------------- |
| 518 | 519 |
| 519 } // namespace IPC | 520 } // namespace IPC |
| OLD | NEW |