OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MP3_MP3_STREAM_PARSER_H_ | 5 #ifndef MEDIA_MP3_MP3_STREAM_PARSER_H_ |
6 #define MEDIA_MP3_MP3_STREAM_PARSER_H_ | 6 #define MEDIA_MP3_MP3_STREAM_PARSER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
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 const NewTextBuffersCB& text_cb, |
32 const NeedKeyCB& need_key_cb, | 32 const NeedKeyCB& need_key_cb, |
33 const AddTextTrackCB& add_text_track_cb, | 33 const NewTextTrackCB& new_text_track_cb, |
34 const NewMediaSegmentCB& new_segment_cb, | 34 const NewMediaSegmentCB& new_segment_cb, |
35 const base::Closure& end_of_segment_cb, | 35 const base::Closure& end_of_segment_cb, |
36 const LogCB& log_cb) OVERRIDE; | 36 const LogCB& log_cb) OVERRIDE; |
37 virtual void Flush() OVERRIDE; | 37 virtual void Flush() OVERRIDE; |
38 virtual bool Parse(const uint8* buf, int size) OVERRIDE; | 38 virtual bool Parse(const uint8* buf, int size) OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 enum State { | 41 enum State { |
42 UNINITIALIZED, | 42 UNINITIALIZED, |
43 INITIALIZED, | 43 INITIALIZED, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // media segment. | 118 // media segment. |
119 // Returns true if the buffers are sent successfully. | 119 // Returns true if the buffers are sent successfully. |
120 bool SendBuffers(BufferQueue* buffers, bool end_of_segment); | 120 bool SendBuffers(BufferQueue* buffers, bool end_of_segment); |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(MP3StreamParser); | 122 DISALLOW_COPY_AND_ASSIGN(MP3StreamParser); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace media | 125 } // namespace media |
126 | 126 |
127 #endif // MEDIA_MP3_MP3_STREAM_PARSER_H_ | 127 #endif // MEDIA_MP3_MP3_STREAM_PARSER_H_ |
OLD | NEW |