summaryrefslogtreecommitdiffstats
path: root/media/cast/cast_environment.cc
diff options
context:
space:
mode:
authorimcheng@chromium.org <imcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-28 01:24:05 +0000
committerimcheng@chromium.org <imcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-28 01:24:05 +0000
commit9fcf1a6e49181ad68d90c6f22f496ca2aebd48aa (patch)
treed2f6c93c66add6a334c2c2ee3a4d83b0441c46ca /media/cast/cast_environment.cc
parent382aa7e9162ba5700496bb186043806a6f27d591 (diff)
downloadchromium_src-9fcf1a6e49181ad68d90c6f22f496ca2aebd48aa.zip
chromium_src-9fcf1a6e49181ad68d90c6f22f496ca2aebd48aa.tar.gz
chromium_src-9fcf1a6e49181ad68d90c6f22f496ca2aebd48aa.tar.bz2
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 Review URL: https://codereview.chromium.org/210303003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260055 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_environment.cc')
-rw-r--r--media/cast/cast_environment.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/media/cast/cast_environment.cc b/media/cast/cast_environment.cc
index a4a93c5..93eb8c7 100644
--- a/media/cast/cast_environment.cc
+++ b/media/cast/cast_environment.cc
@@ -25,13 +25,12 @@ CastEnvironment::CastEnvironment(
scoped_ptr<base::TickClock> clock,
scoped_refptr<SingleThreadTaskRunner> main_thread_proxy,
scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy,
- scoped_refptr<SingleThreadTaskRunner> video_thread_proxy,
- const CastLoggingConfig& logging_config)
+ scoped_refptr<SingleThreadTaskRunner> video_thread_proxy)
: main_thread_proxy_(main_thread_proxy),
audio_thread_proxy_(audio_thread_proxy),
video_thread_proxy_(video_thread_proxy),
clock_(clock.Pass()),
- logging_(new LoggingImpl(logging_config)) {}
+ logging_(new LoggingImpl) {}
CastEnvironment::~CastEnvironment() {
// Logging must be deleted on the main thread.