Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 338065: Add the ability for objects which derive from RefCountedThreadSafe to specify... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698