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 MediaResource::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 // Should never be called since MediaResource::Type is URL. |
| 27 void MediaUrlDemuxer::SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) { |
| 28 NOTREACHED(); |
24 } | 29 } |
25 | 30 |
26 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { | 31 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { |
27 return params_; | 32 return params_; |
28 } | 33 } |
29 | 34 |
30 MediaResource::Type MediaUrlDemuxer::GetType() const { | 35 MediaResource::Type MediaUrlDemuxer::GetType() const { |
31 return MediaResource::Type::URL; | 36 return MediaResource::Type::URL; |
32 } | 37 } |
33 | 38 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 base::TimeDelta currTime) { | 78 base::TimeDelta currTime) { |
74 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
75 } | 80 } |
76 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( | 81 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( |
77 const std::vector<MediaTrack::Id>& track_ids, | 82 const std::vector<MediaTrack::Id>& track_ids, |
78 base::TimeDelta currTime) { | 83 base::TimeDelta currTime) { |
79 NOTIMPLEMENTED(); | 84 NOTIMPLEMENTED(); |
80 } | 85 } |
81 | 86 |
82 } // namespace media | 87 } // namespace media |
OLD | NEW |