5 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_WEBM_INFO_PARSER_H_ 6 #define PACKAGER_MEDIA_FORMATS_WEBM_WEBM_INFO_PARSER_H_ 8 #include "packager/base/compiler_specific.h" 9 #include "packager/base/time/time.h" 10 #include "packager/media/formats/webm/webm_parser.h" 25 int Parse(
const uint8_t* buf,
int size);
27 int64_t timecode_scale()
const {
return timecode_scale_; }
28 double duration()
const {
return duration_; }
29 base::Time date_utc()
const {
return date_utc_; }
34 bool OnListEnd(
int id)
override;
35 bool OnUInt(
int id, int64_t val)
override;
36 bool OnFloat(
int id,
double val)
override;
37 bool OnBinary(
int id,
const uint8_t* data,
int size)
override;
38 bool OnString(
int id,
const std::string& str)
override;
40 int64_t timecode_scale_;
50 #endif // PACKAGER_MEDIA_FORMATS_WEBM_WEBM_INFO_PARSER_H_ All the methods that are virtual are virtual for mocking.