| 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/thread.h" | 6 #include "base/thread.h" |
| 7 #include "ipc/ipc_channel_proxy.h" | 7 #include "ipc/ipc_channel_proxy.h" |
| 8 #include "ipc/ipc_logging.h" | 8 #include "ipc/ipc_logging.h" |
| 9 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
| 10 | 10 |
| 11 namespace IPC { | 11 namespace IPC { |
| 12 | 12 |
| 13 // static |
| 14 void ChannelProxy::MessageFilterTraits::Destruct( |
| 15 ChannelProxy::MessageFilter* filter) { |
| 16 filter->OnDestruct(); |
| 17 } |
| 18 |
| 13 //------------------------------------------------------------------------------ | 19 //------------------------------------------------------------------------------ |
| 14 | 20 |
| 15 // This task ensures the message is deleted if the task is deleted without | 21 // This task ensures the message is deleted if the task is deleted without |
| 16 // having been run. | 22 // having been run. |
| 17 class SendTask : public Task { | 23 class SendTask : public Task { |
| 18 public: | 24 public: |
| 19 SendTask(ChannelProxy::Context* context, Message* message) | 25 SendTask(ChannelProxy::Context* context, Message* message) |
| 20 : context_(context), | 26 : context_(context), |
| 21 message_(message) { | 27 message_(message) { |
| 22 } | 28 } |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 int ChannelProxy::GetClientFileDescriptor() const { | 311 int ChannelProxy::GetClientFileDescriptor() const { |
| 306 Channel *channel = context_.get()->channel_; | 312 Channel *channel = context_.get()->channel_; |
| 307 DCHECK(channel); // Channel must have been created first. | 313 DCHECK(channel); // Channel must have been created first. |
| 308 return channel->GetClientFileDescriptor(); | 314 return channel->GetClientFileDescriptor(); |
| 309 } | 315 } |
| 310 #endif | 316 #endif |
| 311 | 317 |
| 312 //----------------------------------------------------------------------------- | 318 //----------------------------------------------------------------------------- |
| 313 | 319 |
| 314 } // namespace IPC | 320 } // namespace IPC |
| OLD | NEW |