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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 3971004: Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 months 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/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
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
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
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