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

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

Issue 11366226: Rename capture and encode threads to make it clear that they are for video. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/plugin/host_script_object.cc ('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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 network_settings.min_port = NetworkSettings::kDefaultMinPort; 784 network_settings.min_port = NetworkSettings::kDefaultMinPort;
785 network_settings.max_port = NetworkSettings::kDefaultMaxPort; 785 network_settings.max_port = NetworkSettings::kDefaultMaxPort;
786 } 786 }
787 787
788 host_ = new ChromotingHost( 788 host_ = new ChromotingHost(
789 signal_strategy_.get(), 789 signal_strategy_.get(),
790 desktop_environment_factory_.get(), 790 desktop_environment_factory_.get(),
791 CreateHostSessionManager(network_settings, 791 CreateHostSessionManager(network_settings,
792 context_->url_request_context_getter()), 792 context_->url_request_context_getter()),
793 context_->audio_task_runner(), 793 context_->audio_task_runner(),
794 context_->capture_task_runner(), 794 context_->video_capture_task_runner(),
795 context_->encode_task_runner(), 795 context_->video_encode_task_runner(),
796 context_->network_task_runner()); 796 context_->network_task_runner());
797 797
798 // TODO(simonmorris): Get the maximum session duration from a policy. 798 // TODO(simonmorris): Get the maximum session duration from a policy.
799 #if defined(OS_LINUX) 799 #if defined(OS_LINUX)
800 host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20)); 800 host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20));
801 #endif 801 #endif
802 802
803 heartbeat_sender_.reset(new HeartbeatSender( 803 heartbeat_sender_.reset(new HeartbeatSender(
804 this, host_id_, signal_strategy_.get(), &key_pair_)); 804 this, host_id_, signal_strategy_.get(), &key_pair_));
805 805
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 user32.GetFunctionPointer("SetProcessDPIAware")); 1018 user32.GetFunctionPointer("SetProcessDPIAware"));
1019 set_process_dpi_aware(); 1019 set_process_dpi_aware();
1020 } 1020 }
1021 1021
1022 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting 1022 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting
1023 // the command line from GetCommandLineW(), so we can safely pass NULL here. 1023 // the command line from GetCommandLineW(), so we can safely pass NULL here.
1024 return main(0, NULL); 1024 return main(0, NULL);
1025 } 1025 }
1026 1026
1027 #endif // defined(OS_WIN) 1027 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698