Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: media/formats/webm/webm_tracks_parser.h

Issue 655713003: Standardize usage of virtual/override/final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/formats/webm/webm_stream_parser.h ('k') | media/formats/webm/webm_video_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_ 5 #ifndef MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_ 6 #define MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 #include "media/formats/webm/webm_content_encodings_client.h" 21 #include "media/formats/webm/webm_content_encodings_client.h"
22 #include "media/formats/webm/webm_parser.h" 22 #include "media/formats/webm/webm_parser.h"
23 #include "media/formats/webm/webm_video_client.h" 23 #include "media/formats/webm/webm_video_client.h"
24 24
25 namespace media { 25 namespace media {
26 26
27 // Parser for WebM Tracks element. 27 // Parser for WebM Tracks element.
28 class MEDIA_EXPORT WebMTracksParser : public WebMParserClient { 28 class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
29 public: 29 public:
30 explicit WebMTracksParser(const LogCB& log_cb, bool ignore_text_tracks); 30 explicit WebMTracksParser(const LogCB& log_cb, bool ignore_text_tracks);
31 virtual ~WebMTracksParser(); 31 ~WebMTracksParser() override;
32 32
33 // Parses a WebM Tracks element in |buf|. 33 // Parses a WebM Tracks element in |buf|.
34 // 34 //
35 // Returns -1 if the parse fails. 35 // Returns -1 if the parse fails.
36 // Returns 0 if more data is needed. 36 // Returns 0 if more data is needed.
37 // Returns the number of bytes parsed on success. 37 // Returns the number of bytes parsed on success.
38 int Parse(const uint8* buf, int size); 38 int Parse(const uint8* buf, int size);
39 39
40 int64 audio_track_num() const { return audio_track_num_; } 40 int64 audio_track_num() const { return audio_track_num_; }
41 int64 video_track_num() const { return video_track_num_; } 41 int64 video_track_num() const { return video_track_num_; }
(...skipping 26 matching lines...) Expand all
68 } 68 }
69 69
70 typedef std::map<int, TextTrackConfig> TextTracks; 70 typedef std::map<int, TextTrackConfig> TextTracks;
71 71
72 const TextTracks& text_tracks() const { 72 const TextTracks& text_tracks() const {
73 return text_tracks_; 73 return text_tracks_;
74 } 74 }
75 75
76 private: 76 private:
77 // WebMParserClient implementation. 77 // WebMParserClient implementation.
78 virtual WebMParserClient* OnListStart(int id) override; 78 WebMParserClient* OnListStart(int id) override;
79 virtual bool OnListEnd(int id) override; 79 bool OnListEnd(int id) override;
80 virtual bool OnUInt(int id, int64 val) override; 80 bool OnUInt(int id, int64 val) override;
81 virtual bool OnFloat(int id, double val) override; 81 bool OnFloat(int id, double val) override;
82 virtual bool OnBinary(int id, const uint8* data, int size) override; 82 bool OnBinary(int id, const uint8* data, int size) override;
83 virtual bool OnString(int id, const std::string& str) override; 83 bool OnString(int id, const std::string& str) override;
84 84
85 int64 track_type_; 85 int64 track_type_;
86 int64 track_num_; 86 int64 track_num_;
87 std::string track_name_; 87 std::string track_name_;
88 std::string track_language_; 88 std::string track_language_;
89 std::string codec_id_; 89 std::string codec_id_;
90 std::vector<uint8> codec_private_; 90 std::vector<uint8> codec_private_;
91 int64 seek_preroll_; 91 int64 seek_preroll_;
92 int64 codec_delay_; 92 int64 codec_delay_;
93 int64 default_duration_; 93 int64 default_duration_;
(...skipping 15 matching lines...) Expand all
109 109
110 WebMVideoClient video_client_; 110 WebMVideoClient video_client_;
111 VideoDecoderConfig video_decoder_config_; 111 VideoDecoderConfig video_decoder_config_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(WebMTracksParser); 113 DISALLOW_COPY_AND_ASSIGN(WebMTracksParser);
114 }; 114 };
115 115
116 } // namespace media 116 } // namespace media
117 117
118 #endif // MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_ 118 #endif // MEDIA_FORMATS_WEBM_WEBM_TRACKS_PARSER_H_
OLDNEW
« no previous file with comments | « media/formats/webm/webm_stream_parser.h ('k') | media/formats/webm/webm_video_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698