OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_BASE_ANDROID_URL_DEMUXER_STREAM_H_ | |
6 #define MEDIA_BASE_ANDROID_URL_DEMUXER_STREAM_H_ | |
7 | |
8 #include <stddef.h> | |
9 | |
10 #include "base/callback.h" | |
11 #include "base/macros.h" | |
12 #include "base/memory/weak_ptr.h" | |
13 #include "media/base/demuxer.h" | |
14 #include "url/gurl.h" | |
15 | |
16 namespace media { | |
17 | |
18 class UrlDemuxerStream : public DemuxerStream { | |
xhwang
2016/06/22 17:39:02
I don't feel we should have a UrlDemuxerStream. Th
| |
19 public: | |
20 UrlDemuxerStream(const GURL& url); | |
21 virtual ~UrlDemuxerStream(); | |
22 | |
23 void Read(const ReadCB& read_cb) override; | |
24 AudioDecoderConfig audio_decoder_config() override; | |
25 VideoDecoderConfig video_decoder_config() override; | |
26 DemuxerStream::Type type() const override; | |
27 DemuxerStream::Liveness liveness() const override; | |
28 void EnableBitstreamConverter() override; | |
29 bool SupportsConfigChanges() override; | |
30 VideoRotation video_rotation() override; | |
31 | |
32 GURL url() const { return url_; }; | |
33 | |
34 private: | |
35 GURL url_; | |
36 }; | |
37 | |
38 } // namespace media | |
39 | |
40 #endif // MEDIA_BASE_ANDROID_URL_DEMUXER_STREAM_PRODIVDER_H_ | |
OLD | NEW |