| OLD | NEW |
| 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/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 started_(false), | 79 started_(false), |
| 80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()), | 80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()), |
| 81 login_backoff_(&kDefaultBackoffPolicy), | 81 login_backoff_(&kDefaultBackoffPolicy), |
| 82 authenticating_client_(false), | 82 authenticating_client_(false), |
| 83 reject_authenticating_client_(false), | 83 reject_authenticating_client_(false), |
| 84 enable_curtaining_(false), | 84 enable_curtaining_(false), |
| 85 weak_factory_(this) { | 85 weak_factory_(this) { |
| 86 DCHECK(network_task_runner_->BelongsToCurrentThread()); | 86 DCHECK(network_task_runner_->BelongsToCurrentThread()); |
| 87 DCHECK(signal_strategy); | 87 DCHECK(signal_strategy); |
| 88 | 88 |
| 89 // VP9 encode is not yet supported. |
| 90 protocol::CandidateSessionConfig::DisableVideoCodec( |
| 91 protocol_config_.get(), protocol::ChannelConfig::CODEC_VP9); |
| 92 |
| 89 if (!desktop_environment_factory_->SupportsAudioCapture()) { | 93 if (!desktop_environment_factory_->SupportsAudioCapture()) { |
| 90 protocol::CandidateSessionConfig::DisableAudioChannel( | 94 protocol::CandidateSessionConfig::DisableAudioChannel( |
| 91 protocol_config_.get()); | 95 protocol_config_.get()); |
| 92 } | 96 } |
| 93 } | 97 } |
| 94 | 98 |
| 95 ChromotingHost::~ChromotingHost() { | 99 ChromotingHost::~ChromotingHost() { |
| 96 DCHECK(CalledOnValidThread()); | 100 DCHECK(CalledOnValidThread()); |
| 97 | 101 |
| 98 // Disconnect all of the clients. | 102 // Disconnect all of the clients. |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 DCHECK(CalledOnValidThread()); | 319 DCHECK(CalledOnValidThread()); |
| 316 | 320 |
| 317 while (!clients_.empty()) { | 321 while (!clients_.empty()) { |
| 318 size_t size = clients_.size(); | 322 size_t size = clients_.size(); |
| 319 clients_.front()->DisconnectSession(); | 323 clients_.front()->DisconnectSession(); |
| 320 CHECK_EQ(clients_.size(), size - 1); | 324 CHECK_EQ(clients_.size(), size - 1); |
| 321 } | 325 } |
| 322 } | 326 } |
| 323 | 327 |
| 324 } // namespace remoting | 328 } // namespace remoting |
| OLD | NEW |