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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1510 network_settings.port_range.max_port = NetworkSettings::kDefaultMaxPort; | 1510 network_settings.port_range.max_port = NetworkSettings::kDefaultMaxPort; |
1511 } | 1511 } |
1512 | 1512 |
1513 scoped_refptr<protocol::TransportContext> transport_context = | 1513 scoped_refptr<protocol::TransportContext> transport_context = |
1514 new protocol::TransportContext( | 1514 new protocol::TransportContext( |
1515 signal_strategy_.get(), | 1515 signal_strategy_.get(), |
1516 make_scoped_ptr(new protocol::ChromiumPortAllocatorFactory()), | 1516 make_scoped_ptr(new protocol::ChromiumPortAllocatorFactory()), |
1517 make_scoped_ptr(new ChromiumUrlRequestFactory( | 1517 make_scoped_ptr(new ChromiumUrlRequestFactory( |
1518 context_->url_request_context_getter())), | 1518 context_->url_request_context_getter())), |
1519 network_settings, protocol::TransportRole::SERVER); | 1519 network_settings, protocol::TransportRole::SERVER); |
| 1520 transport_context->set_ice_config_url( |
| 1521 ServiceUrls::GetInstance()->ice_config_url()); |
1520 | 1522 |
1521 scoped_ptr<protocol::SessionManager> session_manager( | 1523 scoped_ptr<protocol::SessionManager> session_manager( |
1522 new protocol::JingleSessionManager(signal_strategy_.get())); | 1524 new protocol::JingleSessionManager(signal_strategy_.get())); |
1523 | 1525 |
1524 scoped_ptr<protocol::CandidateSessionConfig> protocol_config = | 1526 scoped_ptr<protocol::CandidateSessionConfig> protocol_config = |
1525 protocol::CandidateSessionConfig::CreateDefault(); | 1527 protocol::CandidateSessionConfig::CreateDefault(); |
1526 if (!desktop_environment_factory_->SupportsAudioCapture()) | 1528 if (!desktop_environment_factory_->SupportsAudioCapture()) |
1527 protocol_config->DisableAudioChannel(); | 1529 protocol_config->DisableAudioChannel(); |
1528 if (enable_vp9_) | 1530 if (enable_vp9_) |
1529 protocol_config->set_vp9_experiment_enabled(true); | 1531 protocol_config->set_vp9_experiment_enabled(true); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); | 1745 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); |
1744 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); | 1746 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); |
1745 | 1747 |
1746 // Run the main (also UI) message loop until the host no longer needs it. | 1748 // Run the main (also UI) message loop until the host no longer needs it. |
1747 message_loop.Run(); | 1749 message_loop.Run(); |
1748 | 1750 |
1749 return exit_code; | 1751 return exit_code; |
1750 } | 1752 } |
1751 | 1753 |
1752 } // namespace remoting | 1754 } // namespace remoting |
OLD | NEW |