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

Issue 1975453002: Add PeerConnection IsClosed check. (Closed)

Created:
4 years, 7 months ago by Zhi Huang
Modified:
4 years, 3 months ago
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 PeerConnection IsClosed check. Add IsClosed check when excuting some functions so that they can return early if the PeerConnection is closed. The observer will not be called after the PeerConnection is closed. BUG=webrtc:5861 Committed: https://crrev.com/29ff8446c0c89114729f6b8cfe49063c899b5764 Cr-Commit-Position: refs/heads/master@{#13544}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Modified the checks. Modified the peerconnectioninterface unit test. #

Total comments: 1

Patch Set 3 : Inject the TransportController to PeerConnection. #

Total comments: 1

Patch Set 4 : Minor Changes. #

Total comments: 6

Patch Set 5 : Change the webrtcsession constructor. #

Total comments: 4

Patch Set 6 : Make it an unique_ptr when passing the TransportController to WebRtcSession. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -53 lines) Patch
M webrtc/api/peerconnection.cc View 1 2 3 4 5 11 chunks +43 lines, -4 lines 0 comments Download
M webrtc/api/peerconnectionfactory.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 9 chunks +76 lines, -23 lines 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 2 3 4 5 1 chunk +10 lines, -5 lines 0 comments Download
M webrtc/api/webrtcsession.h View 1 2 3 4 5 1 chunk +7 lines, -5 lines 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 2 chunks +15 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
Zhi Huang
4 years, 7 months ago (2016-05-11 21:47:00 UTC) #2
Taylor Brandstetter
The check should also probably be added in On(Audio|Video)Track(Added|Removed). These methods can be called if ...
4 years, 7 months ago (2016-05-11 22:18:37 UTC) #3
Zhi Huang
https://codereview.webrtc.org/1975453002/diff/1/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/1975453002/diff/1/webrtc/api/peerconnection.cc#newcode1310 webrtc/api/peerconnection.cc:1310: } On 2016/05/11 22:18:36, Taylor Brandstetter wrote: > This ...
4 years, 7 months ago (2016-05-12 01:25:49 UTC) #4
pthatcher1
https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc#newcode707 webrtc/api/peerconnectioninterface_unittest.cc:707: } Shouldn't we add some unit tests to verify ...
4 years, 7 months ago (2016-05-12 05:44:13 UTC) #5
Zhi Huang
On 2016/05/12 05:44:13, pthatcher1 wrote: > https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc > File webrtc/api/peerconnectioninterface_unittest.cc (right): > > https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc#newcode707 > ...
4 years, 7 months ago (2016-05-13 01:45:05 UTC) #6
Zhi Huang
On 2016/05/12 05:44:13, pthatcher1 wrote: > https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc > File webrtc/api/peerconnectioninterface_unittest.cc (right): > > https://codereview.webrtc.org/1975453002/diff/20001/webrtc/api/peerconnectioninterface_unittest.cc#newcode707 > ...
4 years, 7 months ago (2016-05-13 01:45:07 UTC) #7
pthatcher1
On 2016/05/13 01:45:07, Zhi Huang wrote: > On 2016/05/12 05:44:13, pthatcher1 wrote: > > > ...
4 years, 7 months ago (2016-05-25 20:51:17 UTC) #8
Taylor Brandstetter
On 2016/05/25 20:51:17, pthatcher1 wrote: > On 2016/05/13 01:45:07, Zhi Huang wrote: > > On ...
4 years, 7 months ago (2016-05-25 22:07:12 UTC) #9
pthatcher1
On 2016/05/25 22:07:12, Taylor Brandstetter wrote: > On 2016/05/25 20:51:17, pthatcher1 wrote: > > On ...
4 years, 6 months ago (2016-05-27 17:21:43 UTC) #10
Taylor Brandstetter
On 2016/05/27 17:21:43, pthatcher1 wrote: > On 2016/05/25 22:07:12, Taylor Brandstetter wrote: > > 2. ...
4 years, 6 months ago (2016-05-27 19:32:43 UTC) #11
zhihuang1
Inject the TransportController into PeerConnection. https://codereview.webrtc.org/1975453002/diff/40001/webrtc/api/peerconnectionfactory.cc File webrtc/api/peerconnectionfactory.cc (right): https://codereview.webrtc.org/1975453002/diff/40001/webrtc/api/peerconnectionfactory.cc#newcode191 webrtc/api/peerconnectionfactory.cc:191: } This empty line ...
4 years, 6 months ago (2016-06-01 21:11:21 UTC) #13
Taylor Brandstetter
Good job with the unit test; it ended up very clean. https://codereview.webrtc.org/1975453002/diff/60001/webrtc/api/peerconnectionfactory.cc File webrtc/api/peerconnectionfactory.cc (left): ...
4 years, 6 months ago (2016-06-21 23:50:02 UTC) #14
Zhi Huang
https://codereview.webrtc.org/1975453002/diff/60001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1975453002/diff/60001/webrtc/api/peerconnectioninterface_unittest.cc#newcode545 webrtc/api/peerconnectioninterface_unittest.cc:545: bool is_triggered = false; On 2016/06/21 23:50:02, Taylor Brandstetter ...
4 years, 6 months ago (2016-06-22 22:01:12 UTC) #16
honghaiz3
lgtm https://codereview.webrtc.org/1975453002/diff/80001/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (right): https://codereview.webrtc.org/1975453002/diff/80001/webrtc/api/webrtcsession.cc#newcode477 webrtc/api/webrtcsession.cc:477: transport_controller_.reset(transport_controller); Could this be assigned in the argument ...
4 years, 6 months ago (2016-06-23 18:36:02 UTC) #17
Taylor Brandstetter
lgtm with minor comment. https://codereview.webrtc.org/1975453002/diff/80001/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc (right): https://codereview.webrtc.org/1975453002/diff/80001/webrtc/api/webrtcsession.cc#newcode477 webrtc/api/webrtcsession.cc:477: transport_controller_.reset(transport_controller); On 2016/06/23 18:36:02, honghaiz3 ...
4 years, 6 months ago (2016-06-23 19:42:18 UTC) #18
Zhi Huang
Hi Peter, Can you take a look for this as well? Thanks. https://codereview.chromium.org/1975453002/diff/80001/webrtc/api/webrtcsession.cc File webrtc/api/webrtcsession.cc ...
4 years, 5 months ago (2016-07-11 21:41:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/1975453002/100001
4 years, 4 months ago (2016-07-27 17:27:59 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-07-27 18:07:29 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 18:07:39 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/29ff8446c0c89114729f6b8cfe49063c899b5764
Cr-Commit-Position: refs/heads/master@{#13544}

Powered by Google App Engine
This is Rietveld 408576698