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 | 8 |
9 namespace media { | 9 namespace media { |
10 | 10 |
11 MediaUrlDemuxer::MediaUrlDemuxer( | 11 MediaUrlDemuxer::MediaUrlDemuxer( |
12 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 12 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
13 const GURL& url) | 13 const GURL& media_url, |
14 : url_(url), task_runner_(task_runner) {} | 14 const GURL& first_party_for_cookies) |
| 15 : params_{media_url, first_party_for_cookies}, task_runner_(task_runner) {} |
15 | 16 |
16 MediaUrlDemuxer::~MediaUrlDemuxer() {} | 17 MediaUrlDemuxer::~MediaUrlDemuxer() {} |
17 | 18 |
18 // Should never be called since DemuxerStreamProvider::Type is URL. | 19 // Should never be called since DemuxerStreamProvider::Type is URL. |
19 DemuxerStream* MediaUrlDemuxer::GetStream(DemuxerStream::Type type) { | 20 DemuxerStream* MediaUrlDemuxer::GetStream(DemuxerStream::Type type) { |
20 NOTREACHED(); | 21 NOTREACHED(); |
21 return nullptr; | 22 return nullptr; |
22 } | 23 } |
23 | 24 |
24 GURL MediaUrlDemuxer::GetUrl() const { | 25 MediaUrlParams MediaUrlDemuxer::GetMediaUrlParams() const { |
25 return url_; | 26 return params_; |
26 } | 27 } |
27 | 28 |
28 DemuxerStreamProvider::Type MediaUrlDemuxer::GetType() const { | 29 DemuxerStreamProvider::Type MediaUrlDemuxer::GetType() const { |
29 return DemuxerStreamProvider::Type::URL; | 30 return DemuxerStreamProvider::Type::URL; |
30 } | 31 } |
31 | 32 |
32 std::string MediaUrlDemuxer::GetDisplayName() const { | 33 std::string MediaUrlDemuxer::GetDisplayName() const { |
33 return "MediaUrlDemuxer"; | 34 return "MediaUrlDemuxer"; |
34 } | 35 } |
35 | 36 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 base::TimeDelta currTime) { | 72 base::TimeDelta currTime) { |
72 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
73 } | 74 } |
74 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( | 75 void MediaUrlDemuxer::OnSelectedVideoTrackChanged( |
75 const std::vector<MediaTrack::Id>& track_ids, | 76 const std::vector<MediaTrack::Id>& track_ids, |
76 base::TimeDelta currTime) { | 77 base::TimeDelta currTime) { |
77 NOTIMPLEMENTED(); | 78 NOTIMPLEMENTED(); |
78 } | 79 } |
79 | 80 |
80 } // namespace media | 81 } // namespace media |
OLD | NEW |