diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-18 21:37:04 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-18 21:37:04 +0000 |
commit | 6cac5e0d44fe709949fb9e51f08a5a1d9141fe46 (patch) | |
tree | 9a9983acfef5154308dd932da6af083558aa1b63 /media/base/audio_renderer_sink.h | |
parent | fe6db703db974286f322d3aa310d7c8febbd2067 (diff) | |
download | chromium_src-6cac5e0d44fe709949fb9e51f08a5a1d9141fe46.zip chromium_src-6cac5e0d44fe709949fb9e51f08a5a1d9141fe46.tar.gz chromium_src-6cac5e0d44fe709949fb9e51f08a5a1d9141fe46.tar.bz2 |
RefCounted types should not have public destructors, media/ and gpu/ edition
BUG=123295
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10067035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137966 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/audio_renderer_sink.h')
-rw-r--r-- | media/base/audio_renderer_sink.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h index 140890c..37979f91 100644 --- a/media/base/audio_renderer_sink.h +++ b/media/base/audio_renderer_sink.h @@ -38,8 +38,6 @@ class AudioRendererSink virtual ~RenderCallback() {} }; - virtual ~AudioRendererSink() {} - // Sets important information about the audio stream format. // It must be called before any of the other methods. virtual void Initialize(const AudioParameters& params, @@ -67,6 +65,10 @@ class AudioRendererSink // Gets the playback volume, with range [0.0, 1.0] inclusive. virtual void GetVolume(double* volume) = 0; + + protected: + friend class base::RefCountedThreadSafe<AudioRendererSink>; + virtual ~AudioRendererSink() {} }; } // namespace media |