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

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

Issue 2667283002: Refactor MediaResource to be multi-stream capable (Closed)
Patch Set: 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
« no previous file with comments | « media/base/media_resource.h ('k') | media/base/media_url_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « media/base/media_resource.h ('k') | media/base/media_url_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698