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

Side by Side Diff: remoting/protocol/connection_to_client.cc

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing .gitIngore Created 6 years, 9 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "remoting/protocol/connection_to_client.h" 5 #include "remoting/protocol/connection_to_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 case Session::CLOSED: 152 case Session::CLOSED:
153 Close(OK); 153 Close(OK);
154 break; 154 break;
155 155
156 case Session::FAILED: 156 case Session::FAILED:
157 Close(session_->error()); 157 Close(session_->error());
158 break; 158 break;
159 } 159 }
160 } 160 }
161 161
162 void ConnectionToClient::OnSessionAuthenticationBegin() {
163 DCHECK(handler_);
164 handler_->OnConnectionAuthenticating(this);
165 }
166
162 void ConnectionToClient::OnSessionRouteChange( 167 void ConnectionToClient::OnSessionRouteChange(
163 const std::string& channel_name, 168 const std::string& channel_name,
164 const TransportRoute& route) { 169 const TransportRoute& route) {
165 handler_->OnRouteChange(this, channel_name, route); 170 handler_->OnRouteChange(this, channel_name, route);
166 } 171 }
167 172
168 void ConnectionToClient::OnChannelInitialized(bool successful) { 173 void ConnectionToClient::OnChannelInitialized(bool successful) {
169 DCHECK(CalledOnValidThread()); 174 DCHECK(CalledOnValidThread());
170 175
171 if (!successful) { 176 if (!successful) {
(...skipping 28 matching lines...) Expand all
200 205
201 void ConnectionToClient::CloseChannels() { 206 void ConnectionToClient::CloseChannels() {
202 control_dispatcher_.reset(); 207 control_dispatcher_.reset();
203 event_dispatcher_.reset(); 208 event_dispatcher_.reset();
204 video_writer_.reset(); 209 video_writer_.reset();
205 audio_writer_.reset(); 210 audio_writer_.reset();
206 } 211 }
207 212
208 } // namespace protocol 213 } // namespace protocol
209 } // namespace remoting 214 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698