| OLD | NEW |
| 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_STREAM_PARSER_H_ | 5 #ifndef MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ |
| 6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ | 6 #define MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "media/base/audio_decoder_config.h" | 13 #include "media/base/audio_decoder_config.h" |
| 14 #include "media/base/byte_queue.h" | 14 #include "media/base/byte_queue.h" |
| 15 #include "media/base/media_export.h" |
| 15 #include "media/base/stream_parser.h" | 16 #include "media/base/stream_parser.h" |
| 16 #include "media/base/video_decoder_config.h" | 17 #include "media/base/video_decoder_config.h" |
| 17 | 18 |
| 18 namespace media { | 19 namespace media { |
| 19 | 20 |
| 20 class WebMClusterParser; | 21 class WebMClusterParser; |
| 21 | 22 |
| 22 class WebMStreamParser : public StreamParser { | 23 class MEDIA_EXPORT WebMStreamParser : public StreamParser { |
| 23 public: | 24 public: |
| 24 WebMStreamParser(); | 25 WebMStreamParser(); |
| 25 ~WebMStreamParser() override; | 26 ~WebMStreamParser() override; |
| 26 | 27 |
| 27 // StreamParser implementation. | 28 // StreamParser implementation. |
| 28 void Init(const InitCB& init_cb, | 29 void Init(const InitCB& init_cb, |
| 29 const NewConfigCB& config_cb, | 30 const NewConfigCB& config_cb, |
| 30 const NewBuffersCB& new_buffers_cb, | 31 const NewBuffersCB& new_buffers_cb, |
| 31 bool ignore_text_tracks, | 32 bool ignore_text_tracks, |
| 32 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb, | 33 const EncryptedMediaInitDataCB& encrypted_media_init_data_cb, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 84 |
| 84 scoped_ptr<WebMClusterParser> cluster_parser_; | 85 scoped_ptr<WebMClusterParser> cluster_parser_; |
| 85 ByteQueue byte_queue_; | 86 ByteQueue byte_queue_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser); | 88 DISALLOW_COPY_AND_ASSIGN(WebMStreamParser); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace media | 91 } // namespace media |
| 91 | 92 |
| 92 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ | 93 #endif // MEDIA_FORMATS_WEBM_WEBM_STREAM_PARSER_H_ |
| OLD | NEW |