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

Side by Side Diff: content/renderer/p2p/port_allocator.h

Issue 1309543004: Create a new preference which disables UDP protocol for WebRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
7 7
8 #include "third_party/webrtc/p2p/client/basicportallocator.h" 8 #include "third_party/webrtc/p2p/client/basicportallocator.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 17 matching lines...) Expand all
28 std::string server_address; 28 std::string server_address;
29 int port; 29 int port;
30 std::string transport_type; 30 std::string transport_type;
31 bool secure; 31 bool secure;
32 }; 32 };
33 33
34 std::set<rtc::SocketAddress> stun_servers; 34 std::set<rtc::SocketAddress> stun_servers;
35 35
36 std::vector<RelayServerConfig> relays; 36 std::vector<RelayServerConfig> relays;
37 37
38 // Disable TCP-based transport when set to true. 38 // Disable TCP-based transport when set to false.
39 bool disable_tcp_transport; 39 bool enable_tcp_transport = true;
40
41 // Disable nonproxied UPD-based transport when set to false.
pthatcher2 2015/08/26 21:09:59 non-proxied
42 bool enable_nonproxied_udp_transport = true;
40 43
41 // Disable binding to individual NICs when set to false. 44 // Disable binding to individual NICs when set to false.
42 bool enable_multiple_routes; 45 bool enable_multiple_routes = true;
43 }; 46 };
44 47
45 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, 48 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher,
46 rtc::NetworkManager* network_manager, 49 rtc::NetworkManager* network_manager,
47 rtc::PacketSocketFactory* socket_factory, 50 rtc::PacketSocketFactory* socket_factory,
48 const Config& config, 51 const Config& config,
49 const GURL& origin); 52 const GURL& origin);
50 ~P2PPortAllocator() override; 53 ~P2PPortAllocator() override;
51 54
52 cricket::PortAllocatorSession* CreateSessionInternal( 55 cricket::PortAllocatorSession* CreateSessionInternal(
(...skipping 28 matching lines...) Expand all
81 84
82 private: 85 private:
83 P2PPortAllocator* allocator_; 86 P2PPortAllocator* allocator_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); 88 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession);
86 }; 89 };
87 90
88 } // namespace content 91 } // namespace content
89 92
90 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 93 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698