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

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

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 44 DummyDemuxer(bool has_video, bool has_audio);
45 45
46 // Demuxer implementation. 46 // Demuxer implementation.
47 virtual void Initialize(DemuxerHost* host, 47 virtual void Initialize(DemuxerHost* host,
48 const PipelineStatusCB& status_cb) OVERRIDE; 48 const PipelineStatusCB& status_cb) OVERRIDE;
49 virtual scoped_refptr<DemuxerStream> GetStream( 49 virtual scoped_refptr<DemuxerStream> GetStream(
50 DemuxerStream::Type type) OVERRIDE; 50 DemuxerStream::Type type) OVERRIDE;
51 virtual base::TimeDelta GetStartTime() const OVERRIDE; 51 virtual base::TimeDelta GetStartTime() const OVERRIDE;
52 virtual int GetBitrate() OVERRIDE;
53 52
54 protected: 53 protected:
55 virtual ~DummyDemuxer(); 54 virtual ~DummyDemuxer();
56 55
57 private: 56 private:
58 std::vector< scoped_refptr<DummyDemuxerStream> > streams_; 57 std::vector< scoped_refptr<DummyDemuxerStream> > streams_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer); 59 DISALLOW_COPY_AND_ASSIGN(DummyDemuxer);
61 }; 60 };
62 61
63 } // namespace media 62 } // namespace media
64 63
65 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_ 64 #endif // MEDIA_FILTERS_DUMMY_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698