7 #ifndef PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_ 8 #define PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_ 13 #include "packager/base/callback.h" 14 #include "packager/base/compiler_specific.h" 15 #include "packager/media/base/container_names.h" 32 typedef base::Callback<void(
33 const std::vector<std::shared_ptr<StreamInfo> >& stream_info)>
41 typedef base::Callback<bool(uint32_t track_id,
42 const std::shared_ptr<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 // PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_
All the methods that are virtual are virtual for mocking.