|
Simplify PortAllocatorBase and make PortAllocator creation synchronous.
Previously PortAllocator instances were created asynchronously in
TransportContext. Making PortAllocator synchronous allows to simplify
logic in other places, particularly in WebrtcTransport. Also simplified
PortAllocatorBase - it no longer stores STUN and Relay information and
instead instances of PortAllocatorSessionBase call TransportContext
to request fresh information when allocating ports.
Also removed duplicate logic from PepperPortAllocator and
ChromiumPortAllocator. Specifically they were filtering TCP-based relay
configs, but that's not longer necessary because PortAllocatorBase
is responsible for that now.
BUG= 547158
Committed: https://crrev.com/33312d6d01ec88fb6e686f03c886e2448ee238bd
Cr-Commit-Position: refs/heads/master@{#368701}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+265 lines, -434 lines) |
Patch |
|
M |
remoting/client/plugin/pepper_port_allocator.h
|
View
|
1
2
|
3 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
|
M |
remoting/client/plugin/pepper_port_allocator.cc
|
View
|
1
2
|
6 chunks |
+26 lines, -73 lines |
0 comments
|
Download
|
|
M |
remoting/host/cast_extension.h
|
View
|
|
2 chunks |
+3 lines, -16 lines |
0 comments
|
Download
|
|
M |
remoting/host/cast_extension.cc
|
View
|
|
2 chunks |
+6 lines, -13 lines |
0 comments
|
Download
|
|
M |
remoting/host/cast_extension_session.h
|
View
|
|
5 chunks |
+5 lines, -14 lines |
0 comments
|
Download
|
|
M |
remoting/host/cast_extension_session.cc
|
View
|
1
2
|
5 chunks |
+11 lines, -18 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/chromium_port_allocator.h
|
View
|
|
3 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/chromium_port_allocator.cc
|
View
|
1
2
|
6 chunks |
+29 lines, -62 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/ice_transport_channel.cc
|
View
|
|
2 chunks |
+4 lines, -10 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/port_allocator_base.h
|
View
|
1
2
|
3 chunks |
+28 lines, -26 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/port_allocator_base.cc
|
View
|
1
2
|
4 chunks |
+47 lines, -30 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/port_allocator_factory.h
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/transport_context.h
|
View
|
|
3 chunks |
+22 lines, -23 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/transport_context.cc
|
View
|
|
4 chunks |
+15 lines, -49 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/webrtc_transport.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
remoting/protocol/webrtc_transport.cc
|
View
|
|
2 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
M |
remoting/test/fake_port_allocator.h
|
View
|
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
|
M |
remoting/test/fake_port_allocator.cc
|
View
|
1
2
3
|
4 chunks |
+29 lines, -55 lines |
0 comments
|
Download
|
Total messages: 17 (9 generated)
|