| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 DCHECK(CalledOnValidThread()); | 476 DCHECK(CalledOnValidThread()); |
| 477 | 477 |
| 478 context_->AddFilter(filter); | 478 context_->AddFilter(filter); |
| 479 } | 479 } |
| 480 | 480 |
| 481 void ChannelProxy::RemoveFilter(MessageFilter* filter) { | 481 void ChannelProxy::RemoveFilter(MessageFilter* filter) { |
| 482 DCHECK(CalledOnValidThread()); | 482 DCHECK(CalledOnValidThread()); |
| 483 | 483 |
| 484 context_->ipc_task_runner()->PostTask( | 484 context_->ipc_task_runner()->PostTask( |
| 485 FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_.get(), | 485 FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_.get(), |
| 486 make_scoped_refptr(filter))); | 486 base::RetainedRef(filter))); |
| 487 } | 487 } |
| 488 | 488 |
| 489 void ChannelProxy::ClearIPCTaskRunner() { | 489 void ChannelProxy::ClearIPCTaskRunner() { |
| 490 DCHECK(CalledOnValidThread()); | 490 DCHECK(CalledOnValidThread()); |
| 491 | 491 |
| 492 context()->ClearIPCTaskRunner(); | 492 context()->ClearIPCTaskRunner(); |
| 493 } | 493 } |
| 494 | 494 |
| 495 base::ProcessId ChannelProxy::GetPeerPID() const { | 495 base::ProcessId ChannelProxy::GetPeerPID() const { |
| 496 return context_->peer_pid_; | 496 return context_->peer_pid_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 521 return channel->TakeClientFileDescriptor(); | 521 return channel->TakeClientFileDescriptor(); |
| 522 } | 522 } |
| 523 #endif | 523 #endif |
| 524 | 524 |
| 525 void ChannelProxy::OnChannelInit() { | 525 void ChannelProxy::OnChannelInit() { |
| 526 } | 526 } |
| 527 | 527 |
| 528 //----------------------------------------------------------------------------- | 528 //----------------------------------------------------------------------------- |
| 529 | 529 |
| 530 } // namespace IPC | 530 } // namespace IPC |
| OLD | NEW |