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

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

Issue 2090343004: Add GetUrl to DemuxerStreamProvider interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added UTs Created 4 years, 6 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FAKE_DEMUXER_STREAM_H_ 5 #ifndef MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 6 #define MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 class FakeDemuxerStreamProvider : public DemuxerStreamProvider { 109 class FakeDemuxerStreamProvider : public DemuxerStreamProvider {
110 public: 110 public:
111 // Note: FakeDemuxerStream currently only supports a fake video DemuxerStream. 111 // Note: FakeDemuxerStream currently only supports a fake video DemuxerStream.
112 FakeDemuxerStreamProvider(int num_video_configs, 112 FakeDemuxerStreamProvider(int num_video_configs,
113 int num_video_buffers_in_one_config, 113 int num_video_buffers_in_one_config,
114 bool is_video_encrypted); 114 bool is_video_encrypted);
115 ~FakeDemuxerStreamProvider() override; 115 ~FakeDemuxerStreamProvider() override;
116 116
117 // DemuxerStreamProvider implementation. 117 // DemuxerStreamProvider implementation.
118 DemuxerStream* GetStream(DemuxerStream::Type type) override; 118 DemuxerStream* GetStream(DemuxerStream::Type type) override;
119 GURL* GetUrl() override;
119 120
120 private: 121 private:
121 FakeDemuxerStream fake_video_stream_; 122 FakeDemuxerStream fake_video_stream_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider); 124 DISALLOW_COPY_AND_ASSIGN(FakeDemuxerStreamProvider);
124 }; 125 };
125 126
126 } // namespace media 127 } // namespace media
127 128
128 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_ 129 #endif // MEDIA_BASE_FAKE_DEMUXER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698