| Index: media/base/media_log.h
|
| diff --git a/media/base/media_log.h b/media/base/media_log.h
|
| index 62c9efe44614312c2a39b664b64a0a06807d0d49..2f73e9832a1c944fe924c46e6552264870d4cf44 100644
|
| --- a/media/base/media_log.h
|
| +++ b/media/base/media_log.h
|
| @@ -12,6 +12,7 @@
|
| #include <sstream>
|
| #include <string>
|
|
|
| +#include "base/containers/flat_set.h"
|
| #include "base/logging.h"
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| @@ -90,6 +91,8 @@ class MEDIA_EXPORT MediaLog : public base::RefCountedThreadSafe<MediaLog> {
|
| void SetBooleanProperty(const std::string& key, bool value);
|
|
|
| // Histogram names used for reporting; also double as MediaLog key names.
|
| + // NOTE: If you add to this list you must update GetWatchTimeKeys() and if
|
| + // necessary, GetWatchTimePowerKeys().
|
| static const char kWatchTimeAudioAll[];
|
| static const char kWatchTimeAudioMse[];
|
| static const char kWatchTimeAudioEme[];
|
| @@ -104,11 +107,21 @@ class MEDIA_EXPORT MediaLog : public base::RefCountedThreadSafe<MediaLog> {
|
| static const char kWatchTimeAudioVideoBattery[];
|
| static const char kWatchTimeAudioVideoAc[];
|
| static const char kWatchTimeAudioVideoEmbeddedExperience[];
|
| + static const char kWatchTimeAudioVideoBackgroundAll[];
|
| + static const char kWatchTimeAudioVideoBackgroundMse[];
|
| + static const char kWatchTimeAudioVideoBackgroundEme[];
|
| + static const char kWatchTimeAudioVideoBackgroundSrc[];
|
| + static const char kWatchTimeAudioVideoBackgroundBattery[];
|
| + static const char kWatchTimeAudioVideoBackgroundAc[];
|
| + static const char kWatchTimeAudioVideoBackgroundEmbeddedExperience[];
|
|
|
| // Markers which signify the watch time should be finalized immediately.
|
| static const char kWatchTimeFinalize[];
|
| static const char kWatchTimeFinalizePower[];
|
|
|
| + static base::flat_set<base::StringPiece> GetWatchTimeKeys();
|
| + static base::flat_set<base::StringPiece> GetWatchTimePowerKeys();
|
| +
|
| protected:
|
| friend class base::RefCountedThreadSafe<MediaLog>;
|
| virtual ~MediaLog();
|
|
|