diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:53:08 +0000 |
commit | 877d55dcd3e01d1db858f154a1f369e76b2ebaf2 (patch) | |
tree | ee2364ca767826deed3d541603d6c92ca2f0062e /media/audio | |
parent | aaa47ee9d83f773d37aa4fd4a04097425ce62063 (diff) | |
download | chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.zip chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.gz chromium_src-877d55dcd3e01d1db858f154a1f369e76b2ebaf2.tar.bz2 |
First patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/360042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r-- | media/audio/linux/alsa_output.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/audio/linux/alsa_output.h b/media/audio/linux/alsa_output.h index 58d9ea0..8aa0af3 100644 --- a/media/audio/linux/alsa_output.h +++ b/media/audio/linux/alsa_output.h @@ -75,7 +75,6 @@ class AlsaPcmOutputStream : AlsaWrapper* wrapper, AudioManagerLinux* manager, MessageLoop* message_loop); - virtual ~AlsaPcmOutputStream(); // Implementation of AudioOutputStream. virtual bool Open(size_t packet_size); @@ -86,6 +85,7 @@ class AlsaPcmOutputStream : virtual void GetVolume(double* volume); private: + friend class base::RefCountedThreadSafe<AlsaPcmOutputStream>; friend class AlsaPcmOutputStreamTest; FRIEND_TEST(AlsaPcmOutputStreamTest, AutoSelectDevice_DeviceSelect); FRIEND_TEST(AlsaPcmOutputStreamTest, AutoSelectDevice_FallbackDevices); @@ -106,6 +106,8 @@ class AlsaPcmOutputStream : FRIEND_TEST(AlsaPcmOutputStreamTest, WritePacket_StopStream); FRIEND_TEST(AlsaPcmOutputStreamTest, WritePacket_WriteFails); + virtual ~AlsaPcmOutputStream(); + // In-memory buffer to hold sound samples before pushing to the sound device. // TODO(ajwong): There are now about 3 buffer/packet implementations. Factor // them out. |