7 #ifndef MEDIA_BASE_MEDIA_PARSER_H_
8 #define MEDIA_BASE_MEDIA_PARSER_H_
13 #include "packager/base/callback.h"
14 #include "packager/base/compiler_specific.h"
15 #include "packager/base/memory/ref_counted.h"
16 #include "packager/media/base/container_names.h"
33 typedef base::Callback<
34 void(
const std::vector<scoped_refptr<StreamInfo> >& stream_info)>
InitCB;
41 typedef base::Callback<bool(uint32_t track_id,
42 const scoped_refptr<MediaSample>& media_sample)>
59 virtual bool Flush() WARN_UNUSED_RESULT = 0;
63 virtual
bool Parse(const uint8_t* buf,
int size) WARN_UNUSED_RESULT = 0;
72 #endif // MEDIA_BASE_MEDIA_PARSER_H_