| 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 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 context()->AddGenericAssociatedInterfaceForIOThread(name, factory); | 564 context()->AddGenericAssociatedInterfaceForIOThread(name, factory); |
| 565 } | 565 } |
| 566 | 566 |
| 567 mojo::AssociatedGroup* ChannelProxy::GetAssociatedGroup() { | 567 mojo::AssociatedGroup* ChannelProxy::GetAssociatedGroup() { |
| 568 return context()->associated_group(); | 568 return context()->associated_group(); |
| 569 } | 569 } |
| 570 | 570 |
| 571 void ChannelProxy::GetGenericRemoteAssociatedInterface( | 571 void ChannelProxy::GetGenericRemoteAssociatedInterface( |
| 572 const std::string& name, | 572 const std::string& name, |
| 573 mojo::ScopedInterfaceEndpointHandle handle) { | 573 mojo::ScopedInterfaceEndpointHandle handle) { |
| 574 DCHECK(did_init_); |
| 574 context_->ipc_task_runner()->PostTask( | 575 context_->ipc_task_runner()->PostTask( |
| 575 FROM_HERE, base::Bind(&Context::GetRemoteAssociatedInterface, | 576 FROM_HERE, base::Bind(&Context::GetRemoteAssociatedInterface, |
| 576 context_.get(), name, base::Passed(&handle))); | 577 context_.get(), name, base::Passed(&handle))); |
| 577 } | 578 } |
| 578 | 579 |
| 579 void ChannelProxy::ClearIPCTaskRunner() { | 580 void ChannelProxy::ClearIPCTaskRunner() { |
| 580 DCHECK(CalledOnValidThread()); | 581 DCHECK(CalledOnValidThread()); |
| 581 | 582 |
| 582 context()->ClearIPCTaskRunner(); | 583 context()->ClearIPCTaskRunner(); |
| 583 } | 584 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 613 return channel->TakeClientFileDescriptor(); | 614 return channel->TakeClientFileDescriptor(); |
| 614 } | 615 } |
| 615 #endif | 616 #endif |
| 616 | 617 |
| 617 void ChannelProxy::OnChannelInit() { | 618 void ChannelProxy::OnChannelInit() { |
| 618 } | 619 } |
| 619 | 620 |
| 620 //----------------------------------------------------------------------------- | 621 //----------------------------------------------------------------------------- |
| 621 | 622 |
| 622 } // namespace IPC | 623 } // namespace IPC |
| OLD | NEW |