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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 video_capture_task_runner_(video_capture_task_runner), | 74 video_capture_task_runner_(video_capture_task_runner), |
75 video_encode_task_runner_(video_encode_task_runner), | 75 video_encode_task_runner_(video_encode_task_runner), |
76 network_task_runner_(network_task_runner), | 76 network_task_runner_(network_task_runner), |
77 ui_task_runner_(ui_task_runner), | 77 ui_task_runner_(ui_task_runner), |
78 signal_strategy_(signal_strategy), | 78 signal_strategy_(signal_strategy), |
79 state_(kInitial), | 79 state_(kInitial), |
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 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 84 weak_factory_(this) { |
85 DCHECK(signal_strategy); | 85 DCHECK(signal_strategy); |
86 DCHECK(network_task_runner_->BelongsToCurrentThread()); | 86 DCHECK(network_task_runner_->BelongsToCurrentThread()); |
87 | 87 |
88 if (!desktop_environment_factory_->SupportsAudioCapture()) { | 88 if (!desktop_environment_factory_->SupportsAudioCapture()) { |
89 protocol::CandidateSessionConfig::DisableAudioChannel( | 89 protocol::CandidateSessionConfig::DisableAudioChannel( |
90 protocol_config_.get()); | 90 protocol_config_.get()); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 ChromotingHost::~ChromotingHost() { | 94 ChromotingHost::~ChromotingHost() { |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); | 368 for (std::vector<base::Closure>::iterator it = shutdown_tasks_.begin(); |
369 it != shutdown_tasks_.end(); ++it) { | 369 it != shutdown_tasks_.end(); ++it) { |
370 it->Run(); | 370 it->Run(); |
371 } | 371 } |
372 shutdown_tasks_.clear(); | 372 shutdown_tasks_.clear(); |
373 | 373 |
374 weak_factory_.InvalidateWeakPtrs(); | 374 weak_factory_.InvalidateWeakPtrs(); |
375 } | 375 } |
376 | 376 |
377 } // namespace remoting | 377 } // namespace remoting |
OLD | NEW |