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

Side by Side Diff: media/filters/dummy_demuxer.h

Issue 9968117: Move Demuxer::set_host() to Initialize(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fixes Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/dummy_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Implements the Demuxer interface. DummyDemuxer returns corresponding 5 // Implements the Demuxer interface. DummyDemuxer returns corresponding
6 // DummyDemuxerStream as signal for media pipeline to construct correct 6 // DummyDemuxerStream as signal for media pipeline to construct correct
7 // playback channels. Used in WebRTC local video capture pipeline, where 7 // playback channels. Used in WebRTC local video capture pipeline, where
8 // demuxing is not needed. 8 // demuxing is not needed.
9 9
10 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_ 10 #ifndef MEDIA_FILTERS_DUMMY_DEMUXER_H_
(...skipping 27 matching lines...) Expand all
38 38
39 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream); 39 DISALLOW_COPY_AND_ASSIGN(DummyDemuxerStream);
40 }; 40 };
41 41
42 class MEDIA_EXPORT DummyDemuxer : public Demuxer { 42 class MEDIA_EXPORT DummyDemuxer : public Demuxer {
43 public: 43 public:
44 DummyDemuxer(bool has_video, bool has_audio, bool local_source); 44 DummyDemuxer(bool has_video, bool has_audio, bool local_source);
45 virtual ~DummyDemuxer(); 45 virtual ~DummyDemuxer();
46 46
47 // Demuxer implementation. 47 // Demuxer implementation.
48 virtual void Initialize(const PipelineStatusCB& status_cb) OVERRIDE; 48 virtual void Initialize(DemuxerHost* host,
49 const PipelineStatusCB& status_cb) OVERRIDE;
49 virtual scoped_refptr<DemuxerStream> GetStream( 50 virtual scoped_refptr<DemuxerStream> GetStream(
50 DemuxerStream::Type type) OVERRIDE; 51 DemuxerStream::Type type) OVERRIDE;
51 virtual void set_host(DemuxerHost* demuxer_host) OVERRIDE;
52 virtual base::TimeDelta GetStartTime() const OVERRIDE; 52 virtual base::TimeDelta GetStartTime() const OVERRIDE;
53 virtual int GetBitrate() OVERRIDE; 53 virtual int GetBitrate() OVERRIDE;
54 virtual bool IsLocalSource() OVERRIDE; 54 virtual bool IsLocalSource() OVERRIDE;
55 virtual bool IsSeekable() OVERRIDE; 55 virtual bool IsSeekable() OVERRIDE;
56 56
57 private: 57 private:
58 bool has_video_; 58 bool has_video_;
59 bool has_audio_; 59 bool has_audio_;
60 bool local_source_; 60 bool local_source_;
61 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; 61 std::vector< scoped_refptr<DummyDemuxerStream> > streams_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); 63 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer);
64 }; 64 };
65 65
66 } // namespace media 66 } // namespace media
67 67
68 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ 68 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/dummy_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698