| 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 // 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 NetworkSettings::NAT_TRAVERSAL_ENABLED : | 991 NetworkSettings::NAT_TRAVERSAL_ENABLED : |
| 992 NetworkSettings::NAT_TRAVERSAL_DISABLED); | 992 NetworkSettings::NAT_TRAVERSAL_DISABLED); |
| 993 if (!allow_nat_traversal_) { | 993 if (!allow_nat_traversal_) { |
| 994 network_settings.min_port = NetworkSettings::kDefaultMinPort; | 994 network_settings.min_port = NetworkSettings::kDefaultMinPort; |
| 995 network_settings.max_port = NetworkSettings::kDefaultMaxPort; | 995 network_settings.max_port = NetworkSettings::kDefaultMaxPort; |
| 996 } | 996 } |
| 997 | 997 |
| 998 host_.reset(new ChromotingHost( | 998 host_.reset(new ChromotingHost( |
| 999 signal_strategy_.get(), | 999 signal_strategy_.get(), |
| 1000 desktop_environment_factory_.get(), | 1000 desktop_environment_factory_.get(), |
| 1001 CreateHostSessionManager(network_settings, | 1001 CreateHostSessionManager(signal_strategy_.get(), network_settings, |
| 1002 context_->url_request_context_getter()), | 1002 context_->url_request_context_getter()), |
| 1003 context_->audio_task_runner(), | 1003 context_->audio_task_runner(), |
| 1004 context_->input_task_runner(), | 1004 context_->input_task_runner(), |
| 1005 context_->video_capture_task_runner(), | 1005 context_->video_capture_task_runner(), |
| 1006 context_->video_encode_task_runner(), | 1006 context_->video_encode_task_runner(), |
| 1007 context_->network_task_runner(), | 1007 context_->network_task_runner(), |
| 1008 context_->ui_task_runner())); | 1008 context_->ui_task_runner())); |
| 1009 | 1009 |
| 1010 // TODO(simonmorris): Get the maximum session duration from a policy. | 1010 // TODO(simonmorris): Get the maximum session duration from a policy. |
| 1011 #if defined(OS_LINUX) | 1011 #if defined(OS_LINUX) |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 return exit_code; | 1176 return exit_code; |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 } // namespace remoting | 1179 } // namespace remoting |
| 1180 | 1180 |
| 1181 #if !defined(OS_WIN) | 1181 #if !defined(OS_WIN) |
| 1182 int main(int argc, char** argv) { | 1182 int main(int argc, char** argv) { |
| 1183 return remoting::HostMain(argc, argv); | 1183 return remoting::HostMain(argc, argv); |
| 1184 } | 1184 } |
| 1185 #endif // !defined(OS_WIN) | 1185 #endif // !defined(OS_WIN) |
| OLD | NEW |