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

Issue 1571943002: Simplify PortAllocatorBase and make PortAllocator creation synchronous. (Closed)

Created:
4 years, 11 months ago by Sergey Ulanov
Modified:
4 years, 11 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 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

Messages

Total messages: 17 (9 generated)
Sergey Ulanov
4 years, 11 months ago (2016-01-08 23:25:12 UTC) #3
Jamie
lgtm https://codereview.chromium.org/1571943002/diff/20001/remoting/client/plugin/pepper_port_allocator.cc File remoting/client/plugin/pepper_port_allocator.cc (right): https://codereview.chromium.org/1571943002/diff/20001/remoting/client/plugin/pepper_port_allocator.cc#newcode49 remoting/client/plugin/pepper_port_allocator.cc:49: BasicPortAllocatorSession::allocator()); Optional: I'm not a big fan of ...
4 years, 11 months ago (2016-01-09 00:12:08 UTC) #4
Sergey Ulanov
https://codereview.chromium.org/1571943002/diff/20001/remoting/client/plugin/pepper_port_allocator.cc File remoting/client/plugin/pepper_port_allocator.cc (right): https://codereview.chromium.org/1571943002/diff/20001/remoting/client/plugin/pepper_port_allocator.cc#newcode49 remoting/client/plugin/pepper_port_allocator.cc:49: BasicPortAllocatorSession::allocator()); On 2016/01/09 00:12:07, Jamie wrote: > Optional: I'm ...
4 years, 11 months ago (2016-01-11 20:01:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1571943002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1571943002/40001
4 years, 11 months ago (2016-01-11 20:04:29 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/87933)
4 years, 11 months ago (2016-01-11 20:31:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1571943002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1571943002/60001
4 years, 11 months ago (2016-01-11 21:56:12 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-11 23:07:49 UTC) #15
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 23:08:51 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/33312d6d01ec88fb6e686f03c886e2448ee238bd
Cr-Commit-Position: refs/heads/master@{#368701}

Powered by Google App Engine
This is Rietveld 408576698