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

Issue 210303003: Cast: Remove LoggingStats in favor of event subscribers. (Closed)

Created:
6 years, 9 months ago by imcheng
Modified:
6 years, 9 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cast: Remove LoggingStats in favor of event subscribers. Removed LoggingStats class and replaced them with StatsEventSubscriber. StatsEventSubscriber differs in that the type of event to listen to (audio / video / other) is determined at construction. The API to get the stats map changed as well - caller now passes in an empty map that will get assigned with the data. These changes are in line with the EncodingEventSubscriber. The logic to calculate stats remains the same as LoggingStats, though this will probably change in the future. Stats can be reset as well via Reset(). In addition since stats gathering now depends on collection of raw events (which is enabled everywhere), the flag to enable stats collection in CastLoggingConfig has been removed. Removed CastLoggingConfig struct - logging is enabled always now. There are no use cases where it should be disabled. BUG=353019 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260055

Patch Set 1 #

Patch Set 2 : Removed CastLoggingConfig #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+604 lines, -667 lines) Patch
M chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/cast_streaming/performance_test.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/media/cast_transport_host_filter_unittest.cc View 1 4 chunks +4 lines, -7 lines 0 comments Download
M chrome/common/cast_messages.h View 1 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 1 2 3 5 chunks +59 lines, -35 lines 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/media/cast_transport_sender_ipc.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/audio_receiver/audio_decoder_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/audio_receiver/audio_receiver_unittest.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M media/cast/audio_sender/audio_encoder_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/audio_sender/audio_sender_unittest.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M media/cast/cast.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/cast/cast_environment.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/cast_environment.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M media/cast/logging/encoding_event_subscriber_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/logging/logging.gyp View 1 chunk +4 lines, -2 lines 0 comments Download
M media/cast/logging/logging_defines.h View 1 1 chunk +0 lines, -16 lines 0 comments Download
M media/cast/logging/logging_defines.cc View 1 1 chunk +0 lines, -21 lines 0 comments Download
M media/cast/logging/logging_impl.h View 1 2 chunks +1 line, -13 lines 0 comments Download
M media/cast/logging/logging_impl.cc View 1 5 chunks +10 lines, -59 lines 0 comments Download
M media/cast/logging/logging_impl_unittest.cc View 1 15 chunks +17 lines, -87 lines 0 comments Download
D media/cast/logging/logging_stats.h View 1 chunk +0 lines, -84 lines 0 comments Download
D media/cast/logging/logging_stats.cc View 1 chunk +0 lines, -232 lines 0 comments Download
M media/cast/logging/simple_event_subscriber_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A media/cast/logging/stats_event_subscriber.h View 1 chunk +53 lines, -0 lines 0 comments Download
A media/cast/logging/stats_event_subscriber.cc View 1 chunk +139 lines, -0 lines 0 comments Download
A media/cast/logging/stats_event_subscriber_unittest.cc View 1 2 3 4 1 chunk +173 lines, -0 lines 0 comments Download
A media/cast/logging/stats_util.h View 1 chunk +27 lines, -0 lines 0 comments Download
A media/cast/logging/stats_util.cc View 1 chunk +72 lines, -0 lines 0 comments Download
M media/cast/rtcp/receiver_rtcp_event_subscriber_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_receiver_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_sender_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_unittest.cc View 1 2 3 chunks +1 line, -5 lines 0 comments Download
M media/cast/rtcp/sender_rtcp_event_subscriber_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/test/encode_decode_test.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download
M media/cast/test/receiver.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M media/cast/test/utility/standalone_cast_environment.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/cast/test/utility/standalone_cast_environment.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M media/cast/transport/cast_transport_sender.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/cast/transport/cast_transport_sender_impl.h View 1 3 chunks +3 lines, -5 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl.cc View 1 5 chunks +1 line, -5 lines 0 comments Download
M media/cast/transport/cast_transport_sender_impl_unittest.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M media/cast/transport/pacing/paced_sender_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/cast/transport/rtp_sender/rtp_packetizer/rtp_packetizer_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/video_receiver/video_decoder_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/video_receiver/video_receiver_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/video_sender/external_video_encoder_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/video_sender/video_encoder_impl_unittest.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
imcheng
6 years, 9 months ago (2014-03-24 22:01:00 UTC) #1
imcheng
On second thought, I am going to remove CastLoggingConfig in this patch to avoid changing ...
6 years, 9 months ago (2014-03-24 22:57:48 UTC) #2
imcheng
+hubbe for cast streaming API tests. +erickung as FYI. I have removed the CastLoggingConfig struct ...
6 years, 9 months ago (2014-03-25 19:12:55 UTC) #3
Alpha Left Google
On 2014/03/25 19:12:55, imcheng1 wrote: > +hubbe for cast streaming API tests. > +erickung as ...
6 years, 9 months ago (2014-03-25 21:15:31 UTC) #4
imcheng
+hguihot as FYI. +dcheng for IPC changes. PTAL, thanks.
6 years, 9 months ago (2014-03-25 21:34:00 UTC) #5
imcheng
-dcheng as he's busy, +tsepez Tom, can you please take a look at chrome/common/cast_messages.h? Thanks.
6 years, 9 months ago (2014-03-25 23:09:24 UTC) #6
Tom Sepez
On 2014/03/25 23:09:24, imcheng1 wrote: > -dcheng as he's busy, +tsepez > > Tom, can ...
6 years, 9 months ago (2014-03-26 17:13:17 UTC) #7
Mark Larson
On 2014/03/26 17:13:17, Tom Sepez wrote: > On 2014/03/25 23:09:24, imcheng1 wrote: > > -dcheng ...
6 years, 9 months ago (2014-03-26 17:43:57 UTC) #8
imcheng
Ping for hubbe.
6 years, 9 months ago (2014-03-26 21:54:20 UTC) #9
hubbe
lgtm
6 years, 9 months ago (2014-03-27 18:07:14 UTC) #10
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 9 months ago (2014-03-27 18:21:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/210303003/120001
6 years, 9 months ago (2014-03-27 18:21:48 UTC) #12
imcheng
The CQ bit was unchecked by imcheng@chromium.org
6 years, 9 months ago (2014-03-27 18:27:05 UTC) #13
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 9 months ago (2014-03-27 18:27:31 UTC) #14
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
6 years, 9 months ago (2014-03-27 18:35:18 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/210303003/140001
6 years, 9 months ago (2014-03-27 18:35:23 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 21:24:48 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=289670
6 years, 9 months ago (2014-03-27 21:24:48 UTC) #18
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 9 months ago (2014-03-27 22:01:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/210303003/140001
6 years, 9 months ago (2014-03-27 22:02:20 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 00:24:30 UTC) #21
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-28 00:24:31 UTC) #22
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 9 months ago (2014-03-28 01:20:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/210303003/140001
6 years, 9 months ago (2014-03-28 01:20:56 UTC) #24
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 01:24:12 UTC) #25
Message was sent while issue was closed.
Change committed as 260055

Powered by Google App Engine
This is Rietveld 408576698