1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/thumbnail/generator/android/stats.h" 6 7 #include "base/metrics/histogram_macros.h" 8 RecordMediaParserEvent(MediaParserEvent event)9void RecordMediaParserEvent(MediaParserEvent event) { 10 UMA_HISTOGRAM_ENUMERATION("Download.MediaParser.Event", event, 11 MediaParserEvent::kCount); 12 } 13 RecordMediaMetadataEvent(MediaMetadataEvent event)14void RecordMediaMetadataEvent(MediaMetadataEvent event) { 15 UMA_HISTOGRAM_ENUMERATION("Download.MediaMetadata.Event", event, 16 MediaMetadataEvent::kCount); 17 } 18 RecordVideoThumbnailEvent(VideoThumbnailEvent event)19void RecordVideoThumbnailEvent(VideoThumbnailEvent event) { 20 UMA_HISTOGRAM_ENUMERATION("Download.VideoThumbnail.Event", event, 21 VideoThumbnailEvent::kCount); 22 } 23