Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Unified Diff: media/base/media_url_demuxer.cc

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/media_url_demuxer.cc
diff --git a/media/base/media_url_demuxer.cc b/media/base/media_url_demuxer.cc
index 755e91023be2fbc209e69ee71a1f4d9fc7ebb0fd..aa840ac59793b040abde3d3a2c30445199c9393e 100644
--- a/media/base/media_url_demuxer.cc
+++ b/media/base/media_url_demuxer.cc
@@ -17,18 +17,22 @@ MediaUrlDemuxer::MediaUrlDemuxer(
MediaUrlDemuxer::~MediaUrlDemuxer() {}
-// Should never be called since DemuxerStreamProvider::Type is URL.
-DemuxerStream* MediaUrlDemuxer::GetStream(DemuxerStream::Type type) {
+// Should never be called since MediaResource::Type is URL.
+std::vector<DemuxerStream*> MediaUrlDemuxer::GetStreams() {
+ NOTREACHED();
+ return std::vector<DemuxerStream*>();
+}
+
+void MediaUrlDemuxer::SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) {
NOTREACHED();
- return nullptr;
}
MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const {
return params_;
}
-DemuxerStreamProvider::Type MediaUrlDemuxer::GetType() const {
- return DemuxerStreamProvider::Type::URL;
+MediaResource::Type MediaUrlDemuxer::GetType() const {
+ return MediaResource::Type::URL;
}
std::string MediaUrlDemuxer::GetDisplayName() const {

Powered by Google App Engine
This is Rietveld 408576698