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

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

Issue 289863008: Initialize Talk thread pointer during ChromotingHost initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/DEPS ('k') | no next file » | 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/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"
11 #include "base/message_loop/message_loop_proxy.h" 11 #include "base/message_loop/message_loop_proxy.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "jingle/glue/thread_wrapper.h"
13 #include "remoting/base/constants.h" 14 #include "remoting/base/constants.h"
14 #include "remoting/base/logging.h" 15 #include "remoting/base/logging.h"
15 #include "remoting/host/chromoting_host_context.h" 16 #include "remoting/host/chromoting_host_context.h"
16 #include "remoting/host/desktop_environment.h" 17 #include "remoting/host/desktop_environment.h"
17 #include "remoting/host/host_config.h" 18 #include "remoting/host/host_config.h"
18 #include "remoting/host/input_injector.h" 19 #include "remoting/host/input_injector.h"
19 #include "remoting/protocol/connection_to_client.h" 20 #include "remoting/protocol/connection_to_client.h"
20 #include "remoting/protocol/client_stub.h" 21 #include "remoting/protocol/client_stub.h"
21 #include "remoting/protocol/host_stub.h" 22 #include "remoting/protocol/host_stub.h"
22 #include "remoting/protocol/input_stub.h" 23 #include "remoting/protocol/input_stub.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 started_(false), 80 started_(false),
80 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()), 81 protocol_config_(protocol::CandidateSessionConfig::CreateDefault()),
81 login_backoff_(&kDefaultBackoffPolicy), 82 login_backoff_(&kDefaultBackoffPolicy),
82 authenticating_client_(false), 83 authenticating_client_(false),
83 reject_authenticating_client_(false), 84 reject_authenticating_client_(false),
84 enable_curtaining_(false), 85 enable_curtaining_(false),
85 weak_factory_(this) { 86 weak_factory_(this) {
86 DCHECK(network_task_runner_->BelongsToCurrentThread()); 87 DCHECK(network_task_runner_->BelongsToCurrentThread());
87 DCHECK(signal_strategy); 88 DCHECK(signal_strategy);
88 89
90 jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop();
91
89 // VP9 encode is not yet supported. 92 // VP9 encode is not yet supported.
90 protocol::CandidateSessionConfig::DisableVideoCodec( 93 protocol::CandidateSessionConfig::DisableVideoCodec(
91 protocol_config_.get(), protocol::ChannelConfig::CODEC_VP9); 94 protocol_config_.get(), protocol::ChannelConfig::CODEC_VP9);
92 95
93 if (!desktop_environment_factory_->SupportsAudioCapture()) { 96 if (!desktop_environment_factory_->SupportsAudioCapture()) {
94 protocol::CandidateSessionConfig::DisableAudioChannel( 97 protocol::CandidateSessionConfig::DisableAudioChannel(
95 protocol_config_.get()); 98 protocol_config_.get());
96 } 99 }
97 } 100 }
98 101
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 DCHECK(CalledOnValidThread()); 332 DCHECK(CalledOnValidThread());
330 333
331 while (!clients_.empty()) { 334 while (!clients_.empty()) {
332 size_t size = clients_.size(); 335 size_t size = clients_.size();
333 clients_.front()->DisconnectSession(); 336 clients_.front()->DisconnectSession();
334 CHECK_EQ(clients_.size(), size - 1); 337 CHECK_EQ(clients_.size(), size - 1);
335 } 338 }
336 } 339 }
337 340
338 } // namespace remoting 341 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698