Add integration browser tests for settings hardening.
[chromium-blink-merge.git] / media / formats / mp2t / es_parser.h
blob5297d3213325306ab5e9274e49f0e0f7b101426e
1 // Copyright 2014 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.
5 #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_H_
6 #define MEDIA_FORMATS_MP2T_ES_PARSER_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/time/time.h"
13 namespace media {
15 class StreamParserBuffer;
17 namespace mp2t {
19 class EsParser {
20 public:
21 typedef base::Callback<void(scoped_refptr<StreamParserBuffer>)> EmitBufferCB;
23 EsParser() {}
24 virtual ~EsParser() {}
26 // ES parsing.
27 // Should use kNoTimestamp when a timestamp is not valid.
28 virtual bool Parse(const uint8* buf, int size,
29 base::TimeDelta pts,
30 base::TimeDelta dts) = 0;
32 // Flush any pending buffer.
33 virtual void Flush() = 0;
35 // Reset the state of the ES parser.
36 virtual void Reset() = 0;
39 } // namespace mp2t
40 } // namespace media
42 #endif