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

Unified Diff: media/base/audio_renderer.h

Issue 12262058: Revert r180578, r180591, and r180604 from 1410 branch. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1410/src/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/filter_collection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer.h
===================================================================
--- media/base/audio_renderer.h (revision 182591)
+++ media/base/audio_renderer.h (working copy)
@@ -18,7 +18,8 @@
class AudioDecoder;
class DemuxerStream;
-class MEDIA_EXPORT AudioRenderer {
+class MEDIA_EXPORT AudioRenderer
+ : public base::RefCountedThreadSafe<AudioRenderer> {
public:
typedef std::list<scoped_refptr<AudioDecoder> > AudioDecoderList;
@@ -26,9 +27,6 @@
// Second parameter is the maximum time value that the clock cannot exceed.
typedef base::Callback<void(base::TimeDelta, base::TimeDelta)> TimeCB;
- AudioRenderer();
- virtual ~AudioRenderer();
-
// Initialize a AudioRenderer with the given AudioDecoder, executing the
// |init_cb| upon completion.
//
@@ -92,6 +90,12 @@
// decoded audio buffer.
virtual void ResumeAfterUnderflow(bool buffer_more_audio) = 0;
+ protected:
+ friend class base::RefCountedThreadSafe<AudioRenderer>;
+
+ AudioRenderer();
+ virtual ~AudioRenderer();
+
private:
DISALLOW_COPY_AND_ASSIGN(AudioRenderer);
};
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/filter_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698