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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 for (size_t i = 0; i < filters_.size(); ++i) 119 for (size_t i = 0; i < filters_.size(); ++i)
120 filters_[i]->OnChannelConnected(peer_pid); 120 filters_[i]->OnChannelConnected(peer_pid);
121 121
122 // See above comment about using listener_task_runner_ here. 122 // See above comment about using listener_task_runner_ here.
123 listener_task_runner_->PostTask( 123 listener_task_runner_->PostTask(
124 FROM_HERE, base::Bind(&Context::OnDispatchConnected, this)); 124 FROM_HERE, base::Bind(&Context::OnDispatchConnected, this));
125 } 125 }
126 126
127 // Called on the IPC::Channel thread 127 // Called on the IPC::Channel thread
128 void ChannelProxy::Context::OnChannelError() { 128 void ChannelProxy::Context::OnChannelError() {
129 base::debug::BreakDebugger();
Fady Samuel 2012/07/06 15:14:44 Please remove once you're done with it. :-)
129 for (size_t i = 0; i < filters_.size(); ++i) 130 for (size_t i = 0; i < filters_.size(); ++i)
130 filters_[i]->OnChannelError(); 131 filters_[i]->OnChannelError();
131 132
132 // See above comment about using listener_task_runner_ here. 133 // See above comment about using listener_task_runner_ here.
133 listener_task_runner_->PostTask( 134 listener_task_runner_->PostTask(
134 FROM_HERE, base::Bind(&Context::OnDispatchError, this)); 135 FROM_HERE, base::Bind(&Context::OnDispatchError, this));
135 } 136 }
136 137
137 // Called on the IPC::Channel thread 138 // Called on the IPC::Channel thread
138 void ChannelProxy::Context::OnChannelOpened() { 139 void ChannelProxy::Context::OnChannelOpened() {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 Channel* channel = context_.get()->channel_.get(); 397 Channel* channel = context_.get()->channel_.get();
397 // Channel must have been created first. 398 // Channel must have been created first.
398 DCHECK(channel) << context_.get()->channel_id_; 399 DCHECK(channel) << context_.get()->channel_id_;
399 return channel->GetClientEuid(client_euid); 400 return channel->GetClientEuid(client_euid);
400 } 401 }
401 #endif 402 #endif
402 403
403 //----------------------------------------------------------------------------- 404 //-----------------------------------------------------------------------------
404 405
405 } // namespace IPC 406 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698