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

Side by Side Diff: remoting/client/chromoting_client.cc

Issue 1780403002: Enable Curve25519 in host and client for PIN-based and third-party auth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | remoting/protocol/it2me_host_authenticator_factory.cc » ('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/client/chromoting_client.h" 5 #include "remoting/client/chromoting_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "remoting/base/capabilities.h" 9 #include "remoting/base/capabilities.h"
10 #include "remoting/client/audio_decode_scheduler.h" 10 #include "remoting/client/audio_decode_scheduler.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 const buzz::XmlElement* stanza) { 208 const buzz::XmlElement* stanza) {
209 return false; 209 return false;
210 } 210 }
211 211
212 void ChromotingClient::StartConnection() { 212 void ChromotingClient::StartConnection() {
213 DCHECK(thread_checker_.CalledOnValidThread()); 213 DCHECK(thread_checker_.CalledOnValidThread());
214 connection_->Connect( 214 connection_->Connect(
215 session_manager_->Connect( 215 session_manager_->Connect(
216 host_jid_, 216 host_jid_,
217 make_scoped_ptr(new protocol::NegotiatingClientAuthenticator( 217 make_scoped_ptr(new protocol::NegotiatingClientAuthenticator(
218 signal_strategy_->GetLocalJid(), host_jid_,
218 client_auth_config_))), 219 client_auth_config_))),
219 transport_context_, this); 220 transport_context_, this);
220 } 221 }
221 222
222 void ChromotingClient::OnAuthenticated() { 223 void ChromotingClient::OnAuthenticated() {
223 DCHECK(thread_checker_.CalledOnValidThread()); 224 DCHECK(thread_checker_.CalledOnValidThread());
224 225
225 // Initialize the decoder. 226 // Initialize the decoder.
226 if (connection_->config().is_audio_enabled()) 227 if (connection_->config().is_audio_enabled())
227 audio_decode_scheduler_->Initialize(connection_->config()); 228 audio_decode_scheduler_->Initialize(connection_->config());
228 } 229 }
229 230
230 void ChromotingClient::OnChannelsConnected() { 231 void ChromotingClient::OnChannelsConnected() {
231 DCHECK(thread_checker_.CalledOnValidThread()); 232 DCHECK(thread_checker_.CalledOnValidThread());
232 233
233 // Negotiate capabilities with the host. 234 // Negotiate capabilities with the host.
234 VLOG(1) << "Client capabilities: " << local_capabilities_; 235 VLOG(1) << "Client capabilities: " << local_capabilities_;
235 236
236 protocol::Capabilities capabilities; 237 protocol::Capabilities capabilities;
237 capabilities.set_capabilities(local_capabilities_); 238 capabilities.set_capabilities(local_capabilities_);
238 connection_->host_stub()->SetCapabilities(capabilities); 239 connection_->host_stub()->SetCapabilities(capabilities);
239 } 240 }
240 241
241 } // namespace remoting 242 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/it2me_host_authenticator_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698