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

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

Issue 13813016: Remove reference counting from media::Demuxer and friends. (Closed) Base URL: http://git.chromium.org/chromium/src.git@vd_scoped
Patch Set: Created 7 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
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 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_ 5 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_
6 #define MEDIA_BASE_VIDEO_RENDERER_H_ 6 #define MEDIA_BASE_VIDEO_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // |size_changed_cb| is executed whenever the dimensions of the video has 46 // |size_changed_cb| is executed whenever the dimensions of the video has
47 // changed. 47 // changed.
48 // 48 //
49 // |ended_cb| is executed when video rendering has reached the end of stream. 49 // |ended_cb| is executed when video rendering has reached the end of stream.
50 // 50 //
51 // |error_cb| is executed if an error was encountered. 51 // |error_cb| is executed if an error was encountered.
52 // 52 //
53 // |get_time_cb| is used to query the current media playback time. 53 // |get_time_cb| is used to query the current media playback time.
54 // 54 //
55 // |get_duration_cb| is used to query the media duration. 55 // |get_duration_cb| is used to query the media duration.
56 virtual void Initialize(const scoped_refptr<DemuxerStream>& stream, 56 virtual void Initialize(DemuxerStream* stream,
57 const PipelineStatusCB& init_cb, 57 const PipelineStatusCB& init_cb,
58 const StatisticsCB& statistics_cb, 58 const StatisticsCB& statistics_cb,
59 const TimeCB& time_cb, 59 const TimeCB& time_cb,
60 const NaturalSizeChangedCB& size_changed_cb, 60 const NaturalSizeChangedCB& size_changed_cb,
61 const base::Closure& ended_cb, 61 const base::Closure& ended_cb,
62 const PipelineStatusCB& error_cb, 62 const PipelineStatusCB& error_cb,
63 const TimeDeltaCB& get_time_cb, 63 const TimeDeltaCB& get_time_cb,
64 const TimeDeltaCB& get_duration_cb) = 0; 64 const TimeDeltaCB& get_duration_cb) = 0;
65 65
66 // Start audio decoding and rendering at the current playback rate, executing 66 // Start audio decoding and rendering at the current playback rate, executing
(...skipping 21 matching lines...) Expand all
88 // Updates the current playback rate. 88 // Updates the current playback rate.
89 virtual void SetPlaybackRate(float playback_rate) = 0; 89 virtual void SetPlaybackRate(float playback_rate) = 0;
90 90
91 private: 91 private:
92 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); 92 DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
93 }; 93 };
94 94
95 } // namespace media 95 } // namespace media
96 96
97 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ 97 #endif // MEDIA_BASE_VIDEO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698