| 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 { |
| 19 public: |
| 20 UrlDemuxerStream(const GURL& url); |
| 21 virtual ~UrlDemuxerStream(); |
| 22 |
| 23 // DemuxerStream implementation |
| 24 void Read(const ReadCB& read_cb) override; |
| 25 AudioDecoderConfig audio_decoder_config() override; |
| 26 VideoDecoderConfig video_decoder_config() override; |
| 27 DemuxerStream::Type type() const override; |
| 28 DemuxerStream::Liveness liveness() const override; |
| 29 void EnableBitstreamConverter() override; |
| 30 bool SupportsConfigChanges() override; |
| 31 VideoRotation video_rotation() override; |
| 32 |
| 33 GURL url() const { return url_; }; |
| 34 |
| 35 private: |
| 36 GURL url_; |
| 37 }; |
| 38 |
| 39 } // namespace media |
| 40 |
| 41 #endif // MEDIA_BASE_ANDROID_URL_DEMUXER_STREAM_PRODIVDER_H_ |
| OLD | NEW |