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

Side by Side Diff: media/base/media_url_demuxer.cc

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: rebase Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "media/base/media_url_demuxer.h" 5 #include "media/base/media_url_demuxer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 MediaUrlDemuxer::MediaUrlDemuxer( 12 MediaUrlDemuxer::MediaUrlDemuxer(
13 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 13 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
14 const GURL& media_url, 14 const GURL& media_url,
15 const GURL& first_party_for_cookies) 15 const GURL& first_party_for_cookies)
16 : params_{media_url, first_party_for_cookies}, task_runner_(task_runner) {} 16 : params_{media_url, first_party_for_cookies}, task_runner_(task_runner) {}
17 17
18 MediaUrlDemuxer::~MediaUrlDemuxer() {} 18 MediaUrlDemuxer::~MediaUrlDemuxer() {}
19 19
20 // Should never be called since DemuxerStreamProvider::Type is URL. 20 // Should never be called since MediaResource::Type is URL.
21 DemuxerStream* MediaUrlDemuxer::GetStream(DemuxerStream::Type type) { 21 std::vector<DemuxerStream*> MediaUrlDemuxer::GetStreams() {
22 NOTREACHED(); 22 NOTREACHED();
23 return nullptr; 23 return std::vector<DemuxerStream*>();
24 }
25
26 void MediaUrlDemuxer::SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) {
27 NOTREACHED();
24 } 28 }
25 29
26 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { 30 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const {
27 return params_; 31 return params_;
28 } 32 }
29 33
30 DemuxerStreamProvider::Type MediaUrlDemuxer::GetType() const { 34 MediaResource::Type MediaUrlDemuxer::GetType() const {
31 return DemuxerStreamProvider::Type::URL; 35 return MediaResource::Type::URL;
32 } 36 }
33 37
34 std::string MediaUrlDemuxer::GetDisplayName() const { 38 std::string MediaUrlDemuxer::GetDisplayName() const {
35 return "MediaUrlDemuxer"; 39 return "MediaUrlDemuxer";
36 } 40 }
37 41
38 void MediaUrlDemuxer::Initialize(DemuxerHost* host, 42 void MediaUrlDemuxer::Initialize(DemuxerHost* host,
39 const PipelineStatusCB& status_cb, 43 const PipelineStatusCB& status_cb,
40 bool enable_text_tracks) { 44 bool enable_text_tracks) {
41 DVLOG(1) << __func__; 45 DVLOG(1) << __func__;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::TimeDelta currTime) { 77 base::TimeDelta currTime) {
74 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
75 } 79 }
76 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( 80 void MediaUrlDemuxer::OnSelectedVideoTrackChanged(
77 const std::vector<MediaTrack::Id>& track_ids, 81 const std::vector<MediaTrack::Id>& track_ids,
78 base::TimeDelta currTime) { 82 base::TimeDelta currTime) {
79 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
80 } 84 }
81 85
82 } // namespace media 86 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698