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

Unified Diff: remoting/host/cast_extension_session.cc

Issue 1521883006: Add TransportContext class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/cast_extension_session.cc
diff --git a/remoting/host/cast_extension_session.cc b/remoting/host/cast_extension_session.cc
index 9e4b12df4ab44575c82573fbf69cd44adaaf3609..31087c3a1a4f0855c17dbeb6ffc15dbb9cbc18d5 100644
--- a/remoting/host/cast_extension_session.cc
+++ b/remoting/host/cast_extension_session.cc
@@ -49,11 +49,6 @@ const char kWebRtcSDPMLineIndex[] = "sdpMLineIndex";
const char kVideoLabel[] = "cast_video_label";
const char kStreamLabel[] = "stream_label";
-// Default STUN server used to construct
-// ChromiumPortAllocator for the PeerConnection.
-const char kDefaultStunHost[] = "stun.l.google.com";
-const int kDefaultStunPort = 19302;
-
const char kWorkerThreadName[] = "CastExtensionSessionWorkerThread";
// Interval between each call to PollPeerConnectionStats().
@@ -491,17 +486,14 @@ bool CastExtensionSession::InitializePeerConnection() {
constraints.AddMandatory(webrtc::MediaConstraintsInterface::kEnableDtlsSrtp,
webrtc::MediaConstraintsInterface::kValueTrue);
- rtc::scoped_ptr<protocol::ChromiumPortAllocator> port_allocator(
- protocol::ChromiumPortAllocator::Create(url_request_context_getter_,
- network_settings_)
- .release());
- std::vector<rtc::SocketAddress> stun_hosts;
- stun_hosts.push_back(rtc::SocketAddress(kDefaultStunHost, kDefaultStunPort));
- port_allocator->SetStunHosts(stun_hosts);
+ scoped_ptr<cricket::PortAllocator> port_allocator =
+ protocol::ChromiumPortAllocator::Create(url_request_context_getter_);
webrtc::PeerConnectionInterface::RTCConfiguration rtc_config;
peer_connection_ = peer_conn_factory_->CreatePeerConnection(
- rtc_config, &constraints, port_allocator.Pass(), nullptr, this);
+ rtc_config, &constraints,
+ rtc::scoped_ptr<cricket::PortAllocator>(port_allocator.release()),
+ nullptr, this);
if (!peer_connection_.get()) {
CleanupPeerConnection();
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698