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_MP2T_MP2T_STREAM_PARSER_H_ | 5 #ifndef MEDIA_MP2T_MP2T_STREAM_PARSER_H_ |
6 #define MEDIA_MP2T_MP2T_STREAM_PARSER_H_ | 6 #define MEDIA_MP2T_MP2T_STREAM_PARSER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 public: | 28 public: |
29 Mp2tStreamParser(); | 29 Mp2tStreamParser(); |
30 virtual ~Mp2tStreamParser(); | 30 virtual ~Mp2tStreamParser(); |
31 | 31 |
32 // StreamParser implementation. | 32 // StreamParser implementation. |
33 virtual void Init(const InitCB& init_cb, | 33 virtual void Init(const InitCB& init_cb, |
34 const NewConfigCB& config_cb, | 34 const NewConfigCB& config_cb, |
35 const NewBuffersCB& new_buffers_cb, | 35 const NewBuffersCB& new_buffers_cb, |
36 const NewTextBuffersCB& text_cb, | 36 const NewTextBuffersCB& text_cb, |
37 const NeedKeyCB& need_key_cb, | 37 const NeedKeyCB& need_key_cb, |
38 const AddTextTrackCB& add_text_track_cb, | |
39 const NewMediaSegmentCB& new_segment_cb, | 38 const NewMediaSegmentCB& new_segment_cb, |
40 const base::Closure& end_of_segment_cb, | 39 const base::Closure& end_of_segment_cb, |
41 const LogCB& log_cb) OVERRIDE; | 40 const LogCB& log_cb) OVERRIDE; |
42 virtual void Flush() OVERRIDE; | 41 virtual void Flush() OVERRIDE; |
43 virtual bool Parse(const uint8* buf, int size) OVERRIDE; | 42 virtual bool Parse(const uint8* buf, int size) OVERRIDE; |
44 | 43 |
45 private: | 44 private: |
46 typedef std::map<int, PidState*> PidMap; | 45 typedef std::map<int, PidState*> PidMap; |
47 | 46 |
48 struct BufferQueueWithConfig { | 47 struct BufferQueueWithConfig { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 base::TimeDelta time_offset_; | 123 base::TimeDelta time_offset_; |
125 | 124 |
126 DISALLOW_COPY_AND_ASSIGN(Mp2tStreamParser); | 125 DISALLOW_COPY_AND_ASSIGN(Mp2tStreamParser); |
127 }; | 126 }; |
128 | 127 |
129 } // namespace mp2t | 128 } // namespace mp2t |
130 } // namespace media | 129 } // namespace media |
131 | 130 |
132 #endif | 131 #endif |
133 | 132 |
OLD | NEW |