| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider { | 46 class MEDIA_EXPORT Demuxer : public DemuxerStreamProvider { |
| 47 public: | 47 public: |
| 48 // A new potentially encrypted stream has been parsed. | 48 // A new potentially encrypted stream has been parsed. |
| 49 // First parameter - The type of initialization data. | 49 // First parameter - The type of initialization data. |
| 50 // Second parameter - The initialization data associated with the stream. | 50 // Second parameter - The initialization data associated with the stream. |
| 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)> NeedKeyCB; | 52 const std::vector<uint8>& init_data)> NeedKeyCB; |
| 53 | 53 |
| 54 Demuxer(); | 54 Demuxer(); |
| 55 virtual ~Demuxer(); | 55 ~Demuxer() override; |
| 56 | 56 |
| 57 // Completes initialization of the demuxer. | 57 // Completes initialization of the demuxer. |
| 58 // | 58 // |
| 59 // The demuxer does not own |host| as it is guaranteed to outlive the | 59 // The demuxer does not own |host| as it is guaranteed to outlive the |
| 60 // lifetime of the demuxer. Don't delete it! | 60 // lifetime of the demuxer. Don't delete it! |
| 61 virtual void Initialize(DemuxerHost* host, | 61 virtual void Initialize(DemuxerHost* host, |
| 62 const PipelineStatusCB& status_cb, | 62 const PipelineStatusCB& status_cb, |
| 63 bool enable_text_tracks) = 0; | 63 bool enable_text_tracks) = 0; |
| 64 | 64 |
| 65 // Carry out any actions required to seek to the given time, executing the | 65 // Carry out any actions required to seek to the given time, executing the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 81 // a null Time is returned. | 81 // a null Time is returned. |
| 82 virtual base::Time GetTimelineOffset() const = 0; | 82 virtual base::Time GetTimelineOffset() const = 0; |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 85 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace media | 88 } // namespace media |
| 89 | 89 |
| 90 #endif // MEDIA_BASE_DEMUXER_H_ | 90 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |