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

Side by Side Diff: webrtc/p2p/client/basicportallocator.h

Issue 1520963002: Removing webrtc::PortAllocatorFactoryInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Using new CreatePeerConnection method in objc wrapper. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 26 matching lines...) Expand all
37 const rtc::SocketAddress& relay_server_ssl); 37 const rtc::SocketAddress& relay_server_ssl);
38 virtual ~BasicPortAllocator(); 38 virtual ~BasicPortAllocator();
39 39
40 void SetIceServers( 40 void SetIceServers(
41 const ServerAddresses& stun_servers, 41 const ServerAddresses& stun_servers,
42 const std::vector<RelayServerConfig>& turn_servers) override { 42 const std::vector<RelayServerConfig>& turn_servers) override {
43 stun_servers_ = stun_servers; 43 stun_servers_ = stun_servers;
44 turn_servers_ = turn_servers; 44 turn_servers_ = turn_servers;
45 } 45 }
46 46
47 void SetNetworkIgnoreMask(int network_ignore_mask) override {
48 network_manager_->SetNetworkIgnoreMask(network_ignore_mask);
49 }
50
47 rtc::NetworkManager* network_manager() { return network_manager_; } 51 rtc::NetworkManager* network_manager() { return network_manager_; }
48 52
49 // If socket_factory() is set to NULL each PortAllocatorSession 53 // If socket_factory() is set to NULL each PortAllocatorSession
50 // creates its own socket factory. 54 // creates its own socket factory.
51 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; } 55 rtc::PacketSocketFactory* socket_factory() { return socket_factory_; }
52 56
53 const ServerAddresses& stun_servers() const { 57 const ServerAddresses& stun_servers() const {
54 return stun_servers_; 58 return stun_servers_;
55 } 59 }
56 60
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_; 316 rtc::scoped_ptr<rtc::AsyncPacketSocket> udp_socket_;
313 // There will be only one udp port per AllocationSequence. 317 // There will be only one udp port per AllocationSequence.
314 UDPPort* udp_port_; 318 UDPPort* udp_port_;
315 std::vector<TurnPort*> turn_ports_; 319 std::vector<TurnPort*> turn_ports_;
316 int phase_; 320 int phase_;
317 }; 321 };
318 322
319 } // namespace cricket 323 } // namespace cricket
320 324
321 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ 325 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698