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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 360042: First patch in making destructors of refcounted objects private. (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
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
19 //------------------------------------------------------------------------------ 13 //------------------------------------------------------------------------------
20 14
21 // This task ensures the message is deleted if the task is deleted without 15 // This task ensures the message is deleted if the task is deleted without
22 // having been run. 16 // having been run.
23 class SendTask : public Task { 17 class SendTask : public Task {
24 public: 18 public:
25 SendTask(ChannelProxy::Context* context, Message* message) 19 SendTask(ChannelProxy::Context* context, Message* message)
26 : context_(context), 20 : context_(context),
27 message_(message) { 21 message_(message) {
28 } 22 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 int ChannelProxy::GetClientFileDescriptor() const { 305 int ChannelProxy::GetClientFileDescriptor() const {
312 Channel *channel = context_.get()->channel_; 306 Channel *channel = context_.get()->channel_;
313 DCHECK(channel); // Channel must have been created first. 307 DCHECK(channel); // Channel must have been created first.
314 return channel->GetClientFileDescriptor(); 308 return channel->GetClientFileDescriptor();
315 } 309 }
316 #endif 310 #endif
317 311
318 //----------------------------------------------------------------------------- 312 //-----------------------------------------------------------------------------
319 313
320 } // namespace IPC 314 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698