1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_
6 #define MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_
8 #include "base/functional/callback_forward.h"
12 // Non-fatal parsing, coded frame processing, or buffering warning. These are
13 // intended to be used for telemetry reporting to better understand the
14 // frequency at which they occur.
15 enum class SourceBufferParseWarning {
16 kKeyframeTimeGreaterThanDependant, // Reported up to once per track.
17 kMuxedSequenceMode, // Reported up to once per SourceBuffer.
19 // Reported up to once per FrameProcessor::ProcessFrames():
20 kGroupEndTimestampDecreaseWithinMediaSegment,
23 // For reporting telemetry of a non-fatal SourceBufferParseWarning.
24 using SourceBufferParseWarningCB =
25 base::RepeatingCallback<void(SourceBufferParseWarning)>;
29 #endif // MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_