Index: media/base/demuxer.h |
diff --git a/media/base/demuxer.h b/media/base/demuxer.h |
index a2dad22d67cb28c6085bef3353443693b0ab08e6..3d25199348b54a36c519aca0c597d4a4a974447a 100644 |
--- a/media/base/demuxer.h |
+++ b/media/base/demuxer.h |
@@ -12,6 +12,7 @@ |
#include "media/base/demuxer_stream.h" |
#include "media/base/media_export.h" |
#include "media/base/pipeline_status.h" |
+#include "media/base/text_track.h" |
namespace media { |
@@ -25,6 +26,13 @@ class MEDIA_EXPORT DemuxerHost : public DataSourceHost { |
// method with PIPELINE_OK. |
virtual void OnDemuxerError(PipelineStatus error) = 0; |
+ // Add |text_stream| to the collection managed by the text renderer. |
+ virtual void AddTextStream(DemuxerStream* text_stream, |
+ const TextTrackConfig& config) = 0; |
+ |
+ // Remove |text_stream| from the presentation. |
+ virtual void RemoveTextStream(DemuxerStream* text_stream) = 0; |
+ |
protected: |
virtual ~DemuxerHost(); |
}; |
@@ -66,7 +74,8 @@ class MEDIA_EXPORT Demuxer { |
// TODO(scherkus): this might not be needed http://crbug.com/234708 |
virtual void OnAudioRendererDisabled() = 0; |
- // Returns the given stream type, or NULL if that type is not present. |
+ // Returns the first stream of the given stream type (which is not allowed |
+ // to be DemuxerStream::TEXT), or NULL if that type of stream is not present. |
virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; |
// Returns the starting time for the media file. |