| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_H_ |
| 6 #define MEDIA_BASE_DEMUXER_H_ | 6 #define MEDIA_BASE_DEMUXER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 typedef base::Callback<void(const std::string& type, | 51 typedef base::Callback<void(const std::string& type, |
| 52 const std::vector<uint8>& init_data)> | 52 const std::vector<uint8>& init_data)> |
| 53 EncryptedMediaInitDataCB; | 53 EncryptedMediaInitDataCB; |
| 54 | 54 |
| 55 Demuxer(); | 55 Demuxer(); |
| 56 ~Demuxer() override; | 56 ~Demuxer() override; |
| 57 | 57 |
| 58 // Completes initialization of the demuxer. | 58 // Completes initialization of the demuxer. |
| 59 // | 59 // |
| 60 // The demuxer does not own |host| as it is guaranteed to outlive the | 60 // The demuxer does not own |host| as it is guaranteed to outlive the |
| 61 // lifetime of the demuxer. Don't delete it! | 61 // lifetime of the demuxer. Don't delete it! |status_cb| must only be run |
| 62 // after this method has returned. |
| 62 virtual void Initialize(DemuxerHost* host, | 63 virtual void Initialize(DemuxerHost* host, |
| 63 const PipelineStatusCB& status_cb, | 64 const PipelineStatusCB& status_cb, |
| 64 bool enable_text_tracks) = 0; | 65 bool enable_text_tracks) = 0; |
| 65 | 66 |
| 66 // Carry out any actions required to seek to the given time, executing the | 67 // Carry out any actions required to seek to the given time, executing the |
| 67 // callback upon completion. | 68 // callback upon completion. |
| 68 virtual void Seek(base::TimeDelta time, | 69 virtual void Seek(base::TimeDelta time, |
| 69 const PipelineStatusCB& status_cb) = 0; | 70 const PipelineStatusCB& status_cb) = 0; |
| 70 | 71 |
| 71 // Stops this demuxer. | 72 // Stops this demuxer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 82 // a null Time is returned. | 83 // a null Time is returned. |
| 83 virtual base::Time GetTimelineOffset() const = 0; | 84 virtual base::Time GetTimelineOffset() const = 0; |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 87 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace media | 90 } // namespace media |
| 90 | 91 |
| 91 #endif // MEDIA_BASE_DEMUXER_H_ | 92 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |