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

Side by Side Diff: remoting/client/plugin/pepper_port_allocator.cc

Issue 1278073004: Roll WebRTC 9687:9692, Libjingle 9690:9692 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove roll part; keep only remoting part Created 5 years, 3 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
« no previous file with comments | « no previous file | remoting/protocol/chromium_port_allocator.cc » ('j') | 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/client/plugin/pepper_port_allocator.h" 5 #include "remoting/client/plugin/pepper_port_allocator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 const pp::InstanceHandle& instance, 219 const pp::InstanceHandle& instance,
220 scoped_ptr<rtc::NetworkManager> network_manager, 220 scoped_ptr<rtc::NetworkManager> network_manager,
221 scoped_ptr<rtc::PacketSocketFactory> socket_factory) 221 scoped_ptr<rtc::PacketSocketFactory> socket_factory)
222 : HttpPortAllocatorBase(network_manager.get(), 222 : HttpPortAllocatorBase(network_manager.get(),
223 socket_factory.get(), 223 socket_factory.get(),
224 std::string()), 224 std::string()),
225 instance_(instance), 225 instance_(instance),
226 network_manager_(network_manager.Pass()), 226 network_manager_(network_manager.Pass()),
227 socket_factory_(socket_factory.Pass()) { 227 socket_factory_(socket_factory.Pass()) {
228 // TCP transport is disabled becase PseudoTCP works poorly over 228 // TCP transport is disabled becase PseudoTCP works poorly over
229 // it. ENABLE_SHARED_UFRAG flag is specified so that the same 229 // it.
230 // username fragment is shared between all candidates for this
231 // channel.
232 set_flags(cricket::PORTALLOCATOR_DISABLE_TCP | 230 set_flags(cricket::PORTALLOCATOR_DISABLE_TCP |
233 cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG|
234 cricket::PORTALLOCATOR_ENABLE_IPV6); 231 cricket::PORTALLOCATOR_ENABLE_IPV6);
235 } 232 }
236 233
237 PepperPortAllocator::~PepperPortAllocator() { 234 PepperPortAllocator::~PepperPortAllocator() {
238 } 235 }
239 236
240 cricket::PortAllocatorSession* PepperPortAllocator::CreateSessionInternal( 237 cricket::PortAllocatorSession* PepperPortAllocator::CreateSessionInternal(
241 const std::string& content_name, 238 const std::string& content_name,
242 int component, 239 int component,
243 const std::string& ice_username_fragment, 240 const std::string& ice_username_fragment,
244 const std::string& ice_password) { 241 const std::string& ice_password) {
245 return new PepperPortAllocatorSession( 242 return new PepperPortAllocatorSession(
246 this, content_name, component, ice_username_fragment, ice_password, 243 this, content_name, component, ice_username_fragment, ice_password,
247 stun_hosts(), relay_hosts(), relay_token(), instance_); 244 stun_hosts(), relay_hosts(), relay_token(), instance_);
248 } 245 }
249 246
250 } // namespace remoting 247 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/chromium_port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698