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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 10825275: Clean-up inline members of nested classes (ipc/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 5 #include "base/bind.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // We don't need the filters anymore. 166 // We don't need the filters anymore.
167 filters_.clear(); 167 filters_.clear();
168 168
169 channel_.reset(); 169 channel_.reset();
170 170
171 // Balance with the reference taken during startup. This may result in 171 // Balance with the reference taken during startup. This may result in
172 // self-destruction. 172 // self-destruction.
173 Release(); 173 Release();
174 } 174 }
175 175
176 void ChannelProxy::Context::Clear() {
177 listener_ = NULL;
178 }
179
176 // Called on the IPC::Channel thread 180 // Called on the IPC::Channel thread
177 void ChannelProxy::Context::OnSendMessage(scoped_ptr<Message> message) { 181 void ChannelProxy::Context::OnSendMessage(scoped_ptr<Message> message) {
178 if (!channel_.get()) { 182 if (!channel_.get()) {
179 OnChannelClosed(); 183 OnChannelClosed();
180 return; 184 return;
181 } 185 }
182 if (!channel_->Send(message.release())) 186 if (!channel_->Send(message.release()))
183 OnChannelError(); 187 OnChannelError();
184 } 188 }
185 189
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 Channel* channel = context_.get()->channel_.get(); 400 Channel* channel = context_.get()->channel_.get();
397 // Channel must have been created first. 401 // Channel must have been created first.
398 DCHECK(channel) << context_.get()->channel_id_; 402 DCHECK(channel) << context_.get()->channel_id_;
399 return channel->GetClientEuid(client_euid); 403 return channel->GetClientEuid(client_euid);
400 } 404 }
401 #endif 405 #endif
402 406
403 //----------------------------------------------------------------------------- 407 //-----------------------------------------------------------------------------
404 408
405 } // namespace IPC 409 } // 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