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

Issue 2353033005: Refactoring: move ownership of RtcEventLog from Call to PeerConnection (Closed)

Created:
4 years, 3 months ago by skvlad
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, yujie_mao (webrtc), tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Refactoring: move ownership of RtcEventLog from Call to PeerConnection This CL is a pure refactoring which should not result in any functinal changes. It moves ownership of the RtcEventLog from webrtc::Call to the webrtc::PeerConnection object. This is done so that we can add RtcEventLog support for ICE events - which will require the TransportController to have a pointer to the RtcEventLog. PeerConnection is the closest common owner of both Call and TransportController (through WebRtcSession). BUG=webrtc:6393 Committed: https://crrev.com/11a9cbfa50631f9ca3e61f3f9d993450386983c1 Cr-Commit-Position: refs/heads/master@{#14578}

Patch Set 1 #

Patch Set 2 : Added a DEPS rule to allow including webrtc/call/rtc_event_log.h #

Patch Set 3 : Rebase #

Patch Set 4 : Make Call revert back to a NullRtcEventLog if none was passed in the config #

Total comments: 1

Patch Set 5 : Removed null object impl and replaced with null checks #

Patch Set 6 : Fixed the fuzzer build #

Patch Set 7 : Make TSan happy #

Total comments: 2

Patch Set 8 : Scope down the checkdeps rule to peerconnection.cc only #

Patch Set 9 : Moved DEPS entry to subdirectory #

Total comments: 4

Patch Set 10 : Updated unit tests to use RtcEventLogNullImpl. #

Total comments: 12

Patch Set 11 : Make Call::Config constructor require RtcEventLog #

Total comments: 2

Patch Set 12 : Moved the constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -118 lines) Patch
M webrtc/api/DEPS View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/api/mediacontroller.h View 2 chunks +3 lines, -1 line 0 comments Download
M webrtc/api/mediacontroller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 0 comments Download
M webrtc/api/peerconnection.h View 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -4 lines 0 comments Download
M webrtc/api/peerconnectionfactory.h View 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -5 lines 0 comments Download
M webrtc/api/rtpsenderreceiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -6 lines 0 comments Download
M webrtc/call.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -4 lines 0 comments Download
M webrtc/call/bitrate_estimator_tests.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 9 chunks +10 lines, -20 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/call/packet_injection_tests.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/call/rampup_tests.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/call/rampup_tests.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/media/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -7 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +9 lines, -6 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +13 lines, -5 lines 0 comments Download
M webrtc/pc/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/pc/channelmanager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/test/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/video/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +19 lines, -15 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -2 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 44 (13 generated)
skvlad
kjellander@ - please pay extra attention to the checkdeps rules I've had to modify. Is ...
4 years, 2 months ago (2016-09-26 22:46:57 UTC) #4
honghaiz3
https://codereview.webrtc.org/2353033005/diff/80001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2353033005/diff/80001/webrtc/call/call.cc#newcode238 webrtc/call/call.cc:238: event_log_(config.event_log ? config.event_log : null_event_log_.get()), Is there a way ...
4 years, 2 months ago (2016-09-27 17:49:27 UTC) #7
skvlad
On 2016/09/27 17:49:27, honghaiz3 wrote: > Possible options I can think of: > 1. Let ...
4 years, 2 months ago (2016-09-27 18:30:38 UTC) #8
honghaiz3
On 2016/09/27 18:30:38, skvlad wrote: > On 2016/09/27 17:49:27, honghaiz3 wrote: > > Possible options ...
4 years, 2 months ago (2016-09-27 19:07:17 UTC) #9
skvlad
On 2016/09/27 19:07:17, honghaiz3 wrote: > This sounds a good option to me. It doesn't ...
4 years, 2 months ago (2016-09-27 21:32:49 UTC) #11
honghaiz3
lgtm
4 years, 2 months ago (2016-09-27 23:06:59 UTC) #14
kjellander_webrtc
I only looked at the DEPS change. https://codereview.webrtc.org/2353033005/diff/160001/webrtc/DEPS File webrtc/DEPS (right): https://codereview.webrtc.org/2353033005/diff/160001/webrtc/DEPS#newcode14 webrtc/DEPS:14: "+webrtc/call/rtc_event_log.h", I ...
4 years, 2 months ago (2016-09-28 07:48:23 UTC) #15
skvlad
terelius@, stefan@ - could one of you please take a look? Thanks! https://codereview.webrtc.org/2353033005/diff/160001/webrtc/DEPS File webrtc/DEPS ...
4 years, 2 months ago (2016-09-28 19:03:46 UTC) #16
stefan-webrtc
Personally, I prefer the null implementation over the nullptr checks. I see that you looked ...
4 years, 2 months ago (2016-09-29 07:56:24 UTC) #17
the sun
On 2016/09/29 07:56:24, stefan-webrtc (holmer) wrote: > Personally, I prefer the null implementation over the ...
4 years, 2 months ago (2016-09-29 10:56:52 UTC) #18
skvlad
On 2016/09/29 10:56:52, the sun wrote: > On 2016/09/29 07:56:24, stefan-webrtc (holmer) wrote: > > ...
4 years, 2 months ago (2016-09-29 18:10:18 UTC) #19
skvlad
Ping. Please take a look when you have time.
4 years, 2 months ago (2016-10-04 07:57:33 UTC) #20
kjellander_webrtc
https://codereview.webrtc.org/2353033005/diff/200001/webrtc/api/DEPS File webrtc/api/DEPS (right): https://codereview.webrtc.org/2353033005/diff/200001/webrtc/api/DEPS#newcode21 webrtc/api/DEPS:21: "+webrtc/call/rtc_event_log.h", I think "+webrtc/call" should be allowed for all ...
4 years, 2 months ago (2016-10-04 13:22:30 UTC) #21
stefan-webrtc
On 2016/09/29 18:10:18, skvlad wrote: > On 2016/09/29 10:56:52, the sun wrote: > > On ...
4 years, 2 months ago (2016-10-04 14:47:19 UTC) #22
terelius
On 2016/10/04 14:47:19, stefan-webrtc (holmer) wrote: > On 2016/09/29 18:10:18, skvlad wrote: > > > ...
4 years, 2 months ago (2016-10-04 15:04:32 UTC) #23
skvlad
On 2016/10/04 14:47:19, stefan-webrtc (holmer) wrote: > I looked at test changes in patch set ...
4 years, 2 months ago (2016-10-05 03:03:40 UTC) #24
stefan-webrtc
https://codereview.webrtc.org/2353033005/diff/220001/webrtc/call/bitrate_estimator_tests.cc File webrtc/call/bitrate_estimator_tests.cc (right): https://codereview.webrtc.org/2353033005/diff/220001/webrtc/call/bitrate_estimator_tests.cc#newcode256 webrtc/call/bitrate_estimator_tests.cc:256: webrtc::RtcEventLogNullImpl event_log_; This is a CallTest and should already ...
4 years, 2 months ago (2016-10-05 07:35:22 UTC) #25
skvlad
https://codereview.webrtc.org/2353033005/diff/200001/webrtc/api/DEPS File webrtc/api/DEPS (right): https://codereview.webrtc.org/2353033005/diff/200001/webrtc/api/DEPS#newcode21 webrtc/api/DEPS:21: "+webrtc/call/rtc_event_log.h", On 2016/10/04 13:22:30, kjellander_webrtc wrote: > I think ...
4 years, 2 months ago (2016-10-06 01:31:38 UTC) #26
stefan-webrtc
https://codereview.webrtc.org/2353033005/diff/220001/webrtc/test/call_test.h File webrtc/test/call_test.h (right): https://codereview.webrtc.org/2353033005/diff/220001/webrtc/test/call_test.h#newcode185 webrtc/test/call_test.h:185: webrtc::RtcEventLogNullImpl event_log_; On 2016/10/06 01:31:38, skvlad wrote: > On ...
4 years, 2 months ago (2016-10-06 08:53:14 UTC) #27
stefan-webrtc
https://codereview.webrtc.org/2353033005/diff/220001/webrtc/video/end_to_end_tests.cc File webrtc/video/end_to_end_tests.cc (right): https://codereview.webrtc.org/2353033005/diff/220001/webrtc/video/end_to_end_tests.cc#newcode137 webrtc/video/end_to_end_tests.cc:137: CreateCalls(config, config); On 2016/10/06 01:31:38, skvlad wrote: > On ...
4 years, 2 months ago (2016-10-06 08:55:53 UTC) #28
stefan-webrtc
https://codereview.webrtc.org/2353033005/diff/220001/webrtc/video/end_to_end_tests.cc File webrtc/video/end_to_end_tests.cc (right): https://codereview.webrtc.org/2353033005/diff/220001/webrtc/video/end_to_end_tests.cc#newcode137 webrtc/video/end_to_end_tests.cc:137: CreateCalls(config, config); On 2016/10/06 08:55:53, stefan-webrtc (holmer) wrote: > ...
4 years, 2 months ago (2016-10-06 09:18:06 UTC) #29
terelius
lgtm If we really want to construct configs without having to specify an event log, ...
4 years, 2 months ago (2016-10-06 14:20:49 UTC) #30
skvlad
On 2016/10/06 14:20:49, terelius wrote: > lgtm > > If we really want to construct ...
4 years, 2 months ago (2016-10-07 01:20:48 UTC) #31
skvlad
Is it possible to agree on at least somewhat acceptable implementation (be it with the ...
4 years, 2 months ago (2016-10-07 01:35:04 UTC) #32
terelius
On 2016/10/07 01:20:48, skvlad wrote: > On 2016/10/06 14:20:49, terelius wrote: > > lgtm > ...
4 years, 2 months ago (2016-10-07 08:07:01 UTC) #33
stefan-webrtc
Didn't mean to delay this unnecessarily. The current solution is totally fine with me, but ...
4 years, 2 months ago (2016-10-07 08:38:05 UTC) #34
stefan-webrtc
Remember to update the description before you land.
4 years, 2 months ago (2016-10-07 08:39:07 UTC) #35
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/2353033005/260001
4 years, 2 months ago (2016-10-07 18:04:50 UTC) #39
commit-bot: I haz the power
Committed patchset #12 (id:260001)
4 years, 2 months ago (2016-10-07 18:53:11 UTC) #41
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/11a9cbfa50631f9ca3e61f3f9d993450386983c1 Cr-Commit-Position: refs/heads/master@{#14578}
4 years, 2 months ago (2016-10-07 18:53:21 UTC) #43
the sun
4 years, 2 months ago (2016-10-13 08:06:32 UTC) #44
Message was sent while issue was closed.
On 2016/10/07 18:53:21, commit-bot: I haz the power wrote:
> Patchset 12 (id:??) landed as
> https://crrev.com/11a9cbfa50631f9ca3e61f3f9d993450386983c1
> Cr-Commit-Position: refs/heads/master@{#14578}

Sorry, dropped the ball and missed your ping. The solution lgtm!

Powered by Google App Engine
This is Rietveld 408576698