summaryrefslogtreecommitdiffstats
path: root/media/base/audio_decoder_config.h
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 00:34:23 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 00:34:23 +0000
commitb0b258f31f50eebfbaffdb98f8e36a9a8f86ca19 (patch)
tree758887d391d4ef2c278c4b5d40528ef3b9a05320 /media/base/audio_decoder_config.h
parentf2c971f82ea27b15c674e1f9cbf3513b92636e86 (diff)
downloadchromium_src-b0b258f31f50eebfbaffdb98f8e36a9a8f86ca19.zip
chromium_src-b0b258f31f50eebfbaffdb98f8e36a9a8f86ca19.tar.gz
chromium_src-b0b258f31f50eebfbaffdb98f8e36a9a8f86ca19.tar.bz2
First cut at UMA-exposing histograms of media data in the wild.
BUG=102589 TEST=manual inspection of chrome://histograms/Media Review URL: http://codereview.chromium.org/8439062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108951 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/audio_decoder_config.h')
-rw-r--r--media/base/audio_decoder_config.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/base/audio_decoder_config.h b/media/base/audio_decoder_config.h
index e4891fa..168a941 100644
--- a/media/base/audio_decoder_config.h
+++ b/media/base/audio_decoder_config.h
@@ -13,7 +13,10 @@
namespace media {
enum AudioCodec {
- kUnknownAudioCodec,
+ // These values are histogrammed over time; do not change their ordinal
+ // values. When deleting a codec replace it with a dummy value; when adding a
+ // codec, do so at the bottom (and update kAudioCodecMax).
+ kUnknownAudioCodec = 0,
kCodecAAC,
kCodecMP3,
kCodecPCM,
@@ -28,6 +31,8 @@ enum AudioCodec {
//
// The only acceptable time to add a new codec is if there is production code
// that uses said codec in the same CL.
+
+ kAudioCodecMax = kCodecPCM_MULAW // Must equal the last "real" codec above.
};
class MEDIA_EXPORT AudioDecoderConfig {