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

Issue 2097653002: Add virtual Initialize methods to PortAllocator and NetworkManager. (Closed)

Created:
4 years, 6 months ago by Taylor Brandstetter
Modified:
4 years, 5 months ago
Reviewers:
pthatcher1, skvlad
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add virtual Initialize methods to PortAllocator and NetworkManager. This will allow PeerConnection to handle hopping to the right thread and doing thread-specific initialization for the PortAllocator. This eliminates a required thread-hop for whatever is passing the PortAllocator into CreatePeerConnection. BUG=617648 R=pthatcher@webrtc.org, skvlad@webrtc.org Committed: https://crrev.com/f8e65779a7dc890d8d6f38eca50985a2f0407da1 Committed: https://crrev.com/a6bdb0990a659ff9e7c4374f5033a6bcc4fbfb21 Cr-Original-Commit-Position: refs/heads/master@{#13283} Cr-Commit-Position: refs/heads/master@{#13306}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixing comments. #

Total comments: 2

Patch Set 3 : Revising comment again. #

Patch Set 4 : should->must #

Patch Set 5 : Fixing typo in test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -12 lines) Patch
M webrtc/api/peerconnection.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M webrtc/base/network.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M webrtc/p2p/base/fakeportallocator.h View 6 chunks +18 lines, -9 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Taylor Brandstetter
Please take a look. This allows us to eliminate a thread hop and race condition ...
4 years, 6 months ago (2016-06-23 20:21:03 UTC) #2
pthatcher1
https://codereview.webrtc.org/2097653002/diff/1/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/2097653002/diff/1/webrtc/base/network.h#newcode68 webrtc/base/network.h:68: // (including the destructor) should be called on a ...
4 years, 6 months ago (2016-06-23 22:01:59 UTC) #3
skvlad
lgtm https://codereview.webrtc.org/2097653002/diff/1/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2097653002/diff/1/webrtc/p2p/base/portallocator.h#newcode225 webrtc/p2p/base/portallocator.h:225: // (including the destructor) should be called on ...
4 years, 6 months ago (2016-06-23 22:15:55 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2097653002/diff/1/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/2097653002/diff/1/webrtc/base/network.h#newcode68 webrtc/base/network.h:68: // (including the destructor) should be called on a ...
4 years, 6 months ago (2016-06-23 22:59:07 UTC) #5
pthatcher1
https://codereview.webrtc.org/2097653002/diff/20001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/2097653002/diff/20001/webrtc/base/network.h#newcode68 webrtc/base/network.h:68: // (including the destructor) should be called on the ...
4 years, 6 months ago (2016-06-23 23:41:36 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/2097653002/diff/20001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/2097653002/diff/20001/webrtc/base/network.h#newcode68 webrtc/base/network.h:68: // (including the destructor) should be called on the ...
4 years, 6 months ago (2016-06-24 00:43:07 UTC) #7
pthatcher1
lgtm
4 years, 6 months ago (2016-06-24 00:46:13 UTC) #8
Taylor Brandstetter
Committed patchset #4 (id:60001) to pending queue manually as a17abdb48efcbe636c5bbbe1ac6d3a1fe8254742 (presubmit successful).
4 years, 6 months ago (2016-06-24 21:04:13 UTC) #10
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/a6bdb0990a659ff9e7c4374f5033a6bcc4fbfb21 Cr-Commit-Position: refs/heads/master@{#13283}
4 years, 6 months ago (2016-06-24 21:04:18 UTC) #12
Taylor Brandstetter
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.webrtc.org/2092023004/ by deadbeef@webrtc.org. ...
4 years, 6 months ago (2016-06-24 21:04:49 UTC) #13
Taylor Brandstetter
4 years, 5 months ago (2016-06-28 00:20:32 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
f8e65779a7dc890d8d6f38eca50985a2f0407da1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698