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

Unified Diff: media/base/audio_renderer_sink.h

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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 | « media/audio/test_audio_input_controller_factory.cc ('k') | media/base/buffers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer_sink.h
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
index 140890c0b9eff8e2cf2a4d2c6c76b4b220584721..37979f913012a8be6eb69a719c485951da778acd 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
« no previous file with comments | « media/audio/test_audio_input_controller_factory.cc ('k') | media/base/buffers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698