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

Side by Side Diff: media/formats/mp3/mp3_stream_parser.h

Issue 143973009: SourceState: Coalesce OnNewBuffers() CB to include OnTextBuffers() behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address PS2 comments Created 6 years, 11 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 | Annotate | Revision Log
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_MP3_MP3_STREAM_PARSER_H_ 5 #ifndef MEDIA_FORMATS_MP3_MP3_STREAM_PARSER_H_
6 #define MEDIA_FORMATS_MP3_MP3_STREAM_PARSER_H_ 6 #define MEDIA_FORMATS_MP3_MP3_STREAM_PARSER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 class BitReader; 21 class BitReader;
22 22
23 class MEDIA_EXPORT MP3StreamParser : public StreamParser { 23 class MEDIA_EXPORT MP3StreamParser : public StreamParser {
24 public: 24 public:
25 MP3StreamParser(); 25 MP3StreamParser();
26 virtual ~MP3StreamParser(); 26 virtual ~MP3StreamParser();
27 27
28 // StreamParser implementation. 28 // StreamParser implementation.
29 virtual void Init(const InitCB& init_cb, const NewConfigCB& config_cb, 29 virtual void Init(const InitCB& init_cb, const NewConfigCB& config_cb,
30 const NewBuffersCB& new_buffers_cb, 30 const NewBuffersCB& new_buffers_cb,
31 const NewTextBuffersCB& text_cb, 31 bool ignore_text_tracks,
32 const NeedKeyCB& need_key_cb, 32 const NeedKeyCB& need_key_cb,
33 const NewMediaSegmentCB& new_segment_cb, 33 const NewMediaSegmentCB& new_segment_cb,
34 const base::Closure& end_of_segment_cb, 34 const base::Closure& end_of_segment_cb,
35 const LogCB& log_cb) OVERRIDE; 35 const LogCB& log_cb) OVERRIDE;
36 virtual void Flush() OVERRIDE; 36 virtual void Flush() OVERRIDE;
37 virtual bool Parse(const uint8* buf, int size) OVERRIDE; 37 virtual bool Parse(const uint8* buf, int size) OVERRIDE;
38 38
39 private: 39 private:
40 enum State { 40 enum State {
41 UNINITIALIZED, 41 UNINITIALIZED,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // media segment. 117 // media segment.
118 // Returns true if the buffers are sent successfully. 118 // Returns true if the buffers are sent successfully.
119 bool SendBuffers(BufferQueue* buffers, bool end_of_segment); 119 bool SendBuffers(BufferQueue* buffers, bool end_of_segment);
120 120
121 DISALLOW_COPY_AND_ASSIGN(MP3StreamParser); 121 DISALLOW_COPY_AND_ASSIGN(MP3StreamParser);
122 }; 122 };
123 123
124 } // namespace media 124 } // namespace media
125 125
126 #endif // MEDIA_FORMATS_MP3_MP3_STREAM_PARSER_H_ 126 #endif // MEDIA_FORMATS_MP3_MP3_STREAM_PARSER_H_
OLDNEW
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser_unittest.cc ('k') | media/formats/mp3/mp3_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698