| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/ref_counted.h" | 6 #include "base/ref_counted.h" |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/thread.h" | 8 #include "base/thread.h" |
| 9 #include "ipc/ipc_channel_proxy.h" | 9 #include "ipc/ipc_channel_proxy.h" |
| 10 #include "ipc/ipc_logging.h" | 10 #include "ipc/ipc_logging.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void ChannelProxy::MessageFilter::OnChannelConnected(int32 peer_pid) {} | 47 void ChannelProxy::MessageFilter::OnChannelConnected(int32 peer_pid) {} |
| 48 | 48 |
| 49 void ChannelProxy::MessageFilter::OnChannelError() {} | 49 void ChannelProxy::MessageFilter::OnChannelError() {} |
| 50 | 50 |
| 51 void ChannelProxy::MessageFilter::OnChannelClosing() {} | 51 void ChannelProxy::MessageFilter::OnChannelClosing() {} |
| 52 | 52 |
| 53 bool ChannelProxy::MessageFilter::OnMessageReceived(const Message& message) { | 53 bool ChannelProxy::MessageFilter::OnMessageReceived(const Message& message) { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ChannelProxy::MessageFilter::OnDestruct() { | 57 void ChannelProxy::MessageFilter::OnDestruct() const { |
| 58 delete this; | 58 delete this; |
| 59 } | 59 } |
| 60 | 60 |
| 61 //------------------------------------------------------------------------------ | 61 //------------------------------------------------------------------------------ |
| 62 | 62 |
| 63 ChannelProxy::Context::Context(Channel::Listener* listener, | 63 ChannelProxy::Context::Context(Channel::Listener* listener, |
| 64 MessageFilter* filter, | 64 MessageFilter* filter, |
| 65 MessageLoop* ipc_message_loop) | 65 MessageLoop* ipc_message_loop) |
| 66 : listener_message_loop_(MessageLoop::current()), | 66 : listener_message_loop_(MessageLoop::current()), |
| 67 listener_(listener), | 67 listener_(listener), |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 int ChannelProxy::GetClientFileDescriptor() const { | 341 int ChannelProxy::GetClientFileDescriptor() const { |
| 342 Channel *channel = context_.get()->channel_; | 342 Channel *channel = context_.get()->channel_; |
| 343 DCHECK(channel); // Channel must have been created first. | 343 DCHECK(channel); // Channel must have been created first. |
| 344 return channel->GetClientFileDescriptor(); | 344 return channel->GetClientFileDescriptor(); |
| 345 } | 345 } |
| 346 #endif | 346 #endif |
| 347 | 347 |
| 348 //----------------------------------------------------------------------------- | 348 //----------------------------------------------------------------------------- |
| 349 | 349 |
| 350 } // namespace IPC | 350 } // namespace IPC |
| OLD | NEW |