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

Issue 2317063002: WebRTCPeerConnectionHandler::getStats for the new stats collector API (Closed)

Created:
4 years, 3 months ago by hbos_chromium
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebRTCPeerConnectionHandler::getStats for the new stats collector API. Adds a new getStats, implemented by RTCPeerConnectionHandler. This is a part of surfacing the new stats collection API from WebRTC to Blink. In follow-up CLs the blink::RTCPeerConnection will begin to use it. The old stats collection API will be kept until the new API has matured. Main changes: - MockWebRTCPeerConnectionHandler interface gets a new getStats. RTCPeerConnectionHandler implements it, calling the webrtc::PeerConnectionInterface's getStats. This involves jumping from main thread to signaling thread and back to main thread in a callback. The resulting webrtc::RTCStatsReport is surfaced to Blink using a content::RTCStatsReport. - The callback to Blink is performed using the new interface blink::WebRTCStatsReportCallback. - WebRTCStatsMember gets an isDefined function, implemented by content::RTCStatsMember. Test changes: - MockPeerConnectionImpl implements webrtc::PeerConnectionInterface's getStats to return a specified webrtc::RTCStatsReport. - rtc_peer_connection_handler_test.cc tests RTCPeerConnectionHandler's getStats. The test confirms that we get the expected Blink layer stats by mocking the WebRTC peer connection to return a stats object defined in the test. BUG=chromium:627816 Committed: https://crrev.com/9f64bf32920b4dd5e0eecd59f45b46208a002fd1 Cr-Commit-Position: refs/heads/master@{#420837}

Patch Set 1 #

Patch Set 2 : Minor changes, renames, comments #

Patch Set 3 : TODO to impl MockWebRTCPeerConnectionHandler::getStats in a follow-up instead #

Total comments: 8

Patch Set 4 : Addressed comments #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -2 lines) Patch
M components/test_runner/mock_webrtc_peer_connection_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/mock_webrtc_peer_connection_handler.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/media/mock_peer_connection_impl.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/mock_peer_connection_impl.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 2 3 4 chunks +65 lines, -1 line 5 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 1 2 3 4 chunks +141 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/rtc_stats.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webrtc/rtc_stats.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 2 chunks +3 lines, -0 lines 2 comments Download
M third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCStats.h View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (49 generated)
hbos_chromium
Please take a look, pfeldman and perkj.
4 years, 3 months ago (2016-09-20 10:31:27 UTC) #25
hbos_chromium
Please take a look, foolip.
4 years, 3 months ago (2016-09-20 12:57:52 UTC) #29
foolip
third_party/WebKit/ LGTM, didn't look closely elsewhere https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/mock_peer_connection_impl.h File content/renderer/media/mock_peer_connection_impl.h (right): https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/mock_peer_connection_impl.h#newcode47 content/renderer/media/mock_peer_connection_impl.h:47: // Set Call ...
4 years, 3 months ago (2016-09-20 14:21:49 UTC) #30
hbos_chromium
Can you take a look, hta?
4 years, 3 months ago (2016-09-20 14:25:36 UTC) #32
hta - Chromium
lgtm it's mostly framework so far. Some comments. https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/rtc_peer_connection_handler.cc#newcode677 content/renderer/media/rtc_peer_connection_handler.cc:677: // ...
4 years, 3 months ago (2016-09-20 16:26:46 UTC) #33
hbos_chromium
Please take a look, pfeldman and perkj. https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/mock_peer_connection_impl.h File content/renderer/media/mock_peer_connection_impl.h (right): https://codereview.chromium.org/2317063002/diff/180001/content/renderer/media/mock_peer_connection_impl.h#newcode47 content/renderer/media/mock_peer_connection_impl.h:47: // Set ...
4 years, 3 months ago (2016-09-20 20:18:39 UTC) #36
perkj_chrome
lgtm with the comment below addressed. https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc#newcode688 content/renderer/media/rtc_peer_connection_handler.cc:688: main_thread, callback.release())); std::move ...
4 years, 3 months ago (2016-09-21 12:21:34 UTC) #39
hbos_chromium
Please take a look pfeldman https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc#newcode688 content/renderer/media/rtc_peer_connection_handler.cc:688: main_thread, callback.release())); On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 19:05:21 UTC) #40
perkj_chrome
https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc File content/renderer/media/rtc_peer_connection_handler.cc (right): https://codereview.chromium.org/2317063002/diff/200001/content/renderer/media/rtc_peer_connection_handler.cc#newcode688 content/renderer/media/rtc_peer_connection_handler.cc:688: main_thread, callback.release())); On 2016/09/21 19:05:21, hbos_chromium wrote: > On ...
4 years, 3 months ago (2016-09-22 05:37:51 UTC) #41
hbos_chromium
Please take a look pfeldman.
4 years, 3 months ago (2016-09-22 18:20:24 UTC) #42
hbos_chromium
Please take a look, blundell, for these files: components/test_runner/mock_webrtc_peer_connection_handler.[h/cc]
4 years, 3 months ago (2016-09-23 08:07:32 UTC) #44
blundell
lgtm
4 years, 3 months ago (2016-09-23 08:19:16 UTC) #45
hbos_chromium
PTAL tommi for content/test/BUILD.gn https://codereview.chromium.org/2317063002/diff/200001/content/test/BUILD.gn File content/test/BUILD.gn (right): https://codereview.chromium.org/2317063002/diff/200001/content/test/BUILD.gn#newcode305 content/test/BUILD.gn:305: "//third_party/webrtc/stats:rtc_stats", Because mock_peer_connection_impl.h includes third_party/webrtc/api/stats/rtcstatsreport.h. ...
4 years, 3 months ago (2016-09-23 08:29:46 UTC) #48
tommi (sloooow) - chröme
lgtm
4 years, 3 months ago (2016-09-23 08:32:41 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-23 08:36:15 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/146947)
4 years, 3 months ago (2016-09-23 09:25:57 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-23 09:27:31 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/298455)
4 years, 3 months ago (2016-09-23 09:44:59 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-23 09:54:49 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/298474)
4 years, 3 months ago (2016-09-23 11:02:49 UTC) #62
hbos_chromium
On 2016/09/23 11:02:49, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-23 13:35:44 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-23 13:36:00 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/298586)
4 years, 3 months ago (2016-09-23 14:20:10 UTC) #67
hbos_chromium
(No need to take a look, pfeldman, I have the LGTMs, just waiting for the ...
4 years, 3 months ago (2016-09-23 15:09:47 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-23 23:02:36 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/299091)
4 years, 3 months ago (2016-09-24 01:20:01 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2317063002/200001
4 years, 3 months ago (2016-09-24 06:39:40 UTC) #74
commit-bot: I haz the power
Committed patchset #4 (id:200001)
4 years, 2 months ago (2016-09-24 08:38:41 UTC) #76
commit-bot: I haz the power
4 years, 2 months ago (2016-09-24 08:40:36 UTC) #78
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9f64bf32920b4dd5e0eecd59f45b46208a002fd1
Cr-Commit-Position: refs/heads/master@{#420837}

Powered by Google App Engine
This is Rietveld 408576698