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

Issue 1978183003: Refactor WebRtcLoggingHandlerHost in preparation of automatic upload of WebRtcEventLogs. (Closed)

Created:
4 years, 7 months ago by terelius-chromium
Modified:
4 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor WebRtcLoggingHandlerHost in preparation of automatic upload of WebRtcEventLogs. Rationale: The WebRtcLoggingHandlerHost class is currently quite large (over 800 lines) and does many different things including looking up system information, writing the text log, receiving and sending IPC messages and passing finished logs to the LogUploader. In addition to the original text log, the WebRtcLoggingHandlerHost also creates and manages the rtp dump through a WebRtcRtpDumpHandler object, and we would like to add a WebRtcEventLogHandler object. Proposal: We propose to split out the parts that are specific to the text log into a new WebRtcTextLogHandler class. The WebRtcTextLogHandler will own the actual text buffer, keep track of the logging state and fetch the system information that's written at the start of the log. The new WebRtcLoggingHandlerHost will have ownership of the WebRtcTextLogHandler, WebRtcRtpDumpHandler and WebRtcEventLogHandler objects, receive and send IPC messages, propagate API calls to the right log, and pass the finished logs to the LogUploader. Committed: https://crrev.com/70957b9b7168c2009099ece92fd0f8928a1b46b8 Cr-Commit-Position: refs/heads/master@{#421239}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Misc. reviewer comments #

Total comments: 3

Patch Set 3 : Fix race when renderer is closing while the log is in STARTING or STOPPING state #

Total comments: 25

Patch Set 4 : Comments from magjed #

Total comments: 13

Patch Set 5 : Comments from magjed 2. #

Total comments: 4

Patch Set 6 : Nits from tommi #

Patch Set 7 : Rebase #

Patch Set 8 : Fix windows compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -504 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_log_uploader.h View 1 2 3 4 5 6 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_logging_handler_host.h View 1 2 3 4 5 6 8 chunks +11 lines, -97 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_logging_handler_host.cc View 1 2 3 4 5 6 13 chunks +92 lines, -403 lines 0 comments Download
A chrome/browser/media/webrtc/webrtc_text_log_handler.h View 1 2 3 4 5 6 7 1 chunk +170 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc/webrtc_text_log_handler.cc View 1 2 3 4 5 6 1 chunk +506 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (22 generated)
terelius-chromium
I'd like to discuss the WebRtcLoggingHandlerHost::OnChannelClosing method which seems a bit error prone (both old ...
4 years, 7 months ago (2016-05-16 08:43:13 UTC) #2
Henrik Grunell
Before going into detail, I think the responsibilities need to be clarified (at least in ...
4 years, 7 months ago (2016-05-17 07:29:17 UTC) #3
terelius-chromium
https://codereview.chromium.org/1978183003/diff/1/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/1/chrome/browser/media/webrtc_logging_handler_host.cc#newcode74 chrome/browser/media/webrtc_logging_handler_host.cc:74: if (text_log_handler_->GetState() != WebRtcTextLogHandler::CLOSED) { On 2016/05/17 07:29:17, Henrik ...
4 years, 6 months ago (2016-06-17 11:39:43 UTC) #5
Henrik Grunell
Just a comment on the OnChannelClosing() that we discussed offline. https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 ...
4 years, 5 months ago (2016-07-04 16:51:37 UTC) #6
terelius-chromium
https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 chrome/browser/media/webrtc_logging_handler_host.cc:288: // TODO(terelius): I think we could also be in ...
4 years, 5 months ago (2016-07-05 09:36:54 UTC) #7
Henrik Grunell
https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 chrome/browser/media/webrtc_logging_handler_host.cc:288: // TODO(terelius): I think we could also be in ...
4 years, 5 months ago (2016-07-05 10:56:15 UTC) #8
terelius-chromium
On 2016/07/05 10:56:15, Henrik Grunell wrote: > https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc > File chrome/browser/media/webrtc_logging_handler_host.cc (right): > > https://codereview.chromium.org/1978183003/diff/20001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 ...
4 years, 5 months ago (2016-07-06 09:01:43 UTC) #9
terelius-chromium
Tommi, could you review this CL?
4 years, 5 months ago (2016-07-14 09:46:55 UTC) #12
tommi (sloooow) - chröme
Hej Bjorn - I'm sorry but I won't have time to review today and I'm ...
4 years, 5 months ago (2016-07-15 10:11:36 UTC) #14
magjed_chromium
First pass. https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 chrome/browser/media/webrtc_logging_handler_host.cc:288: if (text_log_handler_->GetState() == WebRtcTextLogHandler::STARTING || On 2016/07/15 ...
4 years, 5 months ago (2016-07-19 14:53:17 UTC) #15
terelius-chromium
https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode288 chrome/browser/media/webrtc_logging_handler_host.cc:288: if (text_log_handler_->GetState() == WebRtcTextLogHandler::STARTING || On 2016/07/19 14:53:16, magjed_chromium ...
4 years, 5 months ago (2016-07-21 16:25:14 UTC) #18
magjed_chromium
https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_text_log_handler.cc File chrome/browser/media/webrtc_text_log_handler.cc (right): https://codereview.chromium.org/1978183003/diff/40001/chrome/browser/media/webrtc_text_log_handler.cc#newcode47 chrome/browser/media/webrtc_text_log_handler.cc:47: void FormatMetaDataAsLogMessage(const MetaDataMap& meta_data, On 2016/07/21 16:25:14, terelius-chromium wrote: ...
4 years, 5 months ago (2016-07-22 09:30:31 UTC) #21
terelius-chromium
https://codereview.chromium.org/1978183003/diff/60001/chrome/browser/media/webrtc_logging_handler_host.cc File chrome/browser/media/webrtc_logging_handler_host.cc (right): https://codereview.chromium.org/1978183003/diff/60001/chrome/browser/media/webrtc_logging_handler_host.cc#newcode339 chrome/browser/media/webrtc_logging_handler_host.cc:339: for (size_t i = 0; i < messages.size(); ++i) ...
4 years, 5 months ago (2016-07-26 09:51:41 UTC) #22
magjed_chromium
lgtm. Adding tommi@ back as reviewer in case he wants to take a look. https://codereview.chromium.org/1978183003/diff/60001/chrome/browser/media/webrtc_text_log_handler.cc ...
4 years, 4 months ago (2016-07-27 11:54:38 UTC) #24
terelius-chromium
Tommi, could you take a look as owner in chrome/browser/media/ ?
4 years, 4 months ago (2016-08-09 14:53:04 UTC) #25
tommi (sloooow) - chröme
lgtm - sorry about the delay. Somehow I didn't get the review request (I think) ...
4 years, 4 months ago (2016-08-09 16:10:57 UTC) #26
terelius-chromium
https://codereview.chromium.org/1978183003/diff/80001/chrome/browser/media/webrtc_text_log_handler.cc File chrome/browser/media/webrtc_text_log_handler.cc (right): https://codereview.chromium.org/1978183003/diff/80001/chrome/browser/media/webrtc_text_log_handler.cc#newcode53 chrome/browser/media/webrtc_text_log_handler.cc:53: if (message.size() > 0) On 2016/08/09 16:10:57, tommi-chrömium wrote: ...
4 years, 4 months ago (2016-08-16 12:01:26 UTC) #27
tommi (sloooow) - chröme
On 2016/08/16 12:01:26, terelius-chromium wrote: > https://codereview.chromium.org/1978183003/diff/80001/chrome/browser/media/webrtc_text_log_handler.cc > File chrome/browser/media/webrtc_text_log_handler.cc (right): > > https://codereview.chromium.org/1978183003/diff/80001/chrome/browser/media/webrtc_text_log_handler.cc#newcode53 > ...
4 years, 3 months ago (2016-08-29 13:45:16 UTC) #28
terelius-chromium
On 2016/08/29 13:45:16, tommi (chrömium) wrote: > On 2016/08/16 12:01:26, terelius-chromium wrote: > > > ...
4 years, 3 months ago (2016-08-29 13:59:25 UTC) #29
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/1978183003/140001
4 years, 2 months ago (2016-09-27 17:02:11 UTC) #40
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-09-27 17:07:40 UTC) #42
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 17:10:33 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/70957b9b7168c2009099ece92fd0f8928a1b46b8
Cr-Commit-Position: refs/heads/master@{#421239}

Powered by Google App Engine
This is Rietveld 408576698