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

Side by Side Diff: media/cast/test/fake_media_source.h

Issue 1658303002: Create abstract interface for media::Pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FakeMediaSource includes. Created 4 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/blink/webmediaplayer_impl.h ('k') | media/filters/decoder_selector.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // A fake media source that generates video and audio frames to a cast 5 // A fake media source that generates video and audio frames to a cast
6 // sender. 6 // sender.
7 // This class can transcode a WebM file using FFmpeg. It can also 7 // This class can transcode a WebM file using FFmpeg. It can also
8 // generate an animation and audio of fixed frequency. 8 // generate an animation and audio of fixed frequency.
9 9
10 #ifndef MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_ 10 #ifndef MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_
(...skipping 20 matching lines...) Expand all
31 struct AVFormatContext; 31 struct AVFormatContext;
32 32
33 namespace media { 33 namespace media {
34 34
35 class AudioBus; 35 class AudioBus;
36 class AudioConverter; 36 class AudioConverter;
37 class AudioFifo; 37 class AudioFifo;
38 class AudioTimestampHelper; 38 class AudioTimestampHelper;
39 class FFmpegGlue; 39 class FFmpegGlue;
40 class InMemoryUrlProtocol; 40 class InMemoryUrlProtocol;
41 class VideoFrame;
41 42
42 namespace cast { 43 namespace cast {
43 44
44 class AudioFrameInput; 45 class AudioFrameInput;
45 class VideoFrameInput; 46 class VideoFrameInput;
46 class TestAudioBusFactory; 47 class TestAudioBusFactory;
47 48
48 class FakeMediaSource : public media::AudioConverter::InputCallback { 49 class FakeMediaSource : public media::AudioConverter::InputCallback {
49 public: 50 public:
50 // |task_runner| is to schedule decoding tasks. 51 // |task_runner| is to schedule decoding tasks.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // NOTE: Weak pointers must be invalidated before all other member variables. 169 // NOTE: Weak pointers must be invalidated before all other member variables.
169 base::WeakPtrFactory<FakeMediaSource> weak_factory_; 170 base::WeakPtrFactory<FakeMediaSource> weak_factory_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(FakeMediaSource); 172 DISALLOW_COPY_AND_ASSIGN(FakeMediaSource);
172 }; 173 };
173 174
174 } // namespace cast 175 } // namespace cast
175 } // namespace media 176 } // namespace media
176 177
177 #endif // MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_ 178 #endif // MEDIA_CAST_TEST_FAKE_MEDIA_SOURCE_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | media/filters/decoder_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698