OLD | NEW |
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 DemuxerStream* MediaUrlDemuxer::GetStream(DemuxerStream::Type type) { |
22 NOTREACHED(); | 22 NOTREACHED(); |
23 return nullptr; | 23 return nullptr; |
24 } | 24 } |
25 | 25 |
26 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { | 26 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { |
27 return params_; | 27 return params_; |
28 } | 28 } |
29 | 29 |
30 DemuxerStreamProvider::Type MediaUrlDemuxer::GetType() const { | 30 MediaResource::Type MediaUrlDemuxer::GetType() const { |
31 return DemuxerStreamProvider::Type::URL; | 31 return MediaResource::Type::URL; |
32 } | 32 } |
33 | 33 |
34 std::string MediaUrlDemuxer::GetDisplayName() const { | 34 std::string MediaUrlDemuxer::GetDisplayName() const { |
35 return "MediaUrlDemuxer"; | 35 return "MediaUrlDemuxer"; |
36 } | 36 } |
37 | 37 |
38 void MediaUrlDemuxer::Initialize(DemuxerHost* host, | 38 void MediaUrlDemuxer::Initialize(DemuxerHost* host, |
39 const PipelineStatusCB& status_cb, | 39 const PipelineStatusCB& status_cb, |
40 bool enable_text_tracks) { | 40 bool enable_text_tracks) { |
41 DVLOG(1) << __func__; | 41 DVLOG(1) << __func__; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::TimeDelta currTime) { | 73 base::TimeDelta currTime) { |
74 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
75 } | 75 } |
76 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( | 76 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( |
77 const std::vector<MediaTrack::Id>& track_ids, | 77 const std::vector<MediaTrack::Id>& track_ids, |
78 base::TimeDelta currTime) { | 78 base::TimeDelta currTime) { |
79 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
80 } | 80 } |
81 | 81 |
82 } // namespace media | 82 } // namespace media |
OLD | NEW |