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

Side by Side Diff: remoting/host/client_session.cc

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last round of feedbacks Created 6 years, 8 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 | « remoting/host/client_session.h ('k') | remoting/host/host_mock_objects.h » ('j') | 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 "remoting/host/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "remoting/base/capabilities.h" 10 #include "remoting/base/capabilities.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } else { 203 } else {
204 HOST_LOG << "gnubby auth is not enabled"; 204 HOST_LOG << "gnubby auth is not enabled";
205 } 205 }
206 return; 206 return;
207 } 207 }
208 } 208 }
209 HOST_LOG << "Unexpected message received: " 209 HOST_LOG << "Unexpected message received: "
210 << message.type() << ": " << message.data(); 210 << message.type() << ": " << message.data();
211 } 211 }
212 212
213 void ClientSession::OnConnectionAuthenticating(
214 protocol::ConnectionToClient* connection) {
215 event_handler_->OnSessionAuthenticating(this);
216 }
217
213 void ClientSession::OnConnectionAuthenticated( 218 void ClientSession::OnConnectionAuthenticated(
214 protocol::ConnectionToClient* connection) { 219 protocol::ConnectionToClient* connection) {
215 DCHECK(CalledOnValidThread()); 220 DCHECK(CalledOnValidThread());
216 DCHECK_EQ(connection_.get(), connection); 221 DCHECK_EQ(connection_.get(), connection);
217 DCHECK(!audio_scheduler_.get()); 222 DCHECK(!audio_scheduler_.get());
218 DCHECK(!desktop_environment_); 223 DCHECK(!desktop_environment_);
219 DCHECK(!input_injector_); 224 DCHECK(!input_injector_);
220 DCHECK(!screen_controls_); 225 DCHECK(!screen_controls_);
221 DCHECK(!video_scheduler_.get()); 226 DCHECK(!video_scheduler_.get());
222 227
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim()); 466 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim());
462 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { 467 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) {
463 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus()); 468 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus());
464 } 469 }
465 470
466 NOTREACHED(); 471 NOTREACHED();
467 return scoped_ptr<AudioEncoder>(); 472 return scoped_ptr<AudioEncoder>();
468 } 473 }
469 474
470 } // namespace remoting 475 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/host_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698