7 #ifndef MEDIA_BASE_MEDIA_PARSER_H_
8 #define MEDIA_BASE_MEDIA_PARSER_H_
13 #include "packager/base/callback.h"
14 #include "packager/base/memory/ref_counted.h"
15 #include "packager/base/memory/scoped_ptr.h"
16 #include "packager/media/base/container_names.h"
18 namespace edash_packager {
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)>
58 virtual void Flush() = 0;
62 virtual bool Parse(
const uint8_t* buf,
int size) = 0;
71 #endif // MEDIA_BASE_MEDIA_PARSER_H_