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 #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 6 #define MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // MediaResource. | 32 // MediaResource. |
33 class MEDIA_EXPORT MediaUrlDemuxer : public Demuxer { | 33 class MEDIA_EXPORT MediaUrlDemuxer : public Demuxer { |
34 public: | 34 public: |
35 MediaUrlDemuxer( | 35 MediaUrlDemuxer( |
36 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 36 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
37 const GURL& media_url, | 37 const GURL& media_url, |
38 const GURL& first_party_for_cookies); | 38 const GURL& first_party_for_cookies); |
39 ~MediaUrlDemuxer() override; | 39 ~MediaUrlDemuxer() override; |
40 | 40 |
41 // MediaResource interface. | 41 // MediaResource interface. |
42 DemuxerStream* GetStream(DemuxerStream::Type type) override; | 42 std::vector<DemuxerStream*> GetStreams() override; |
| 43 void SetStreamStatusChangeCB(const StreamStatusChangeCB& cb) override; |
43 MediaUrlParams GetMediaUrlParams() const override; | 44 MediaUrlParams GetMediaUrlParams() const override; |
44 MediaResource::Type GetType() const override; | 45 MediaResource::Type GetType() const override; |
45 | 46 |
46 // Demuxer interface. | 47 // Demuxer interface. |
47 std::string GetDisplayName() const override; | 48 std::string GetDisplayName() const override; |
48 void Initialize(DemuxerHost* host, | 49 void Initialize(DemuxerHost* host, |
49 const PipelineStatusCB& status_cb, | 50 const PipelineStatusCB& status_cb, |
50 bool enable_text_tracks) override; | 51 bool enable_text_tracks) override; |
51 void StartWaitingForSeek(base::TimeDelta seek_time) override; | 52 void StartWaitingForSeek(base::TimeDelta seek_time) override; |
52 void CancelPendingSeek(base::TimeDelta seek_time) override; | 53 void CancelPendingSeek(base::TimeDelta seek_time) override; |
(...skipping 12 matching lines...) Expand all Loading... |
65 MediaUrlParams params_; | 66 MediaUrlParams params_; |
66 | 67 |
67 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 68 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer); | 70 DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace media | 73 } // namespace media |
73 | 74 |
74 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_ | 75 #endif // MEDIA_BASE_MEDIA_URL_DEMUXER_H_ |
OLD | NEW |