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

Unified Diff: media/audio/mac/audio_manager_mac.h

Issue 11338024: Handle audio device changes on Mac (Take 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pass callback directly. Created 8 years, 2 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
Index: media/audio/mac/audio_manager_mac.h
diff --git a/media/audio/mac/audio_manager_mac.h b/media/audio/mac/audio_manager_mac.h
index d655d4b11ed9d54fac49daf85f6dd13de0916fd9..a3f76f480f8294e4d4cd2752bbd327b4eea896c7 100644
--- a/media/audio/mac/audio_manager_mac.h
+++ b/media/audio/mac/audio_manager_mac.h
@@ -6,11 +6,14 @@
#define MEDIA_AUDIO_MAC_AUDIO_MANAGER_MAC_H_
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "media/audio/audio_manager_base.h"
namespace media {
+class AudioDeviceListenerMac;
+
// Mac OS X implementation of the AudioManager singleton. This class is internal
// to the audio output and only internal users can call methods not exposed by
// the AudioManager class.
@@ -37,7 +40,16 @@ class MEDIA_EXPORT AudioManagerMac : public AudioManagerBase {
protected:
virtual ~AudioManagerMac();
+ // Implementation of AudioManager.
+ virtual void InitializeOnAudioThread() OVERRIDE;
scherkus (not reviewing) 2012/10/31 23:17:22 silliness alert! Initialize() is an empty virtual
DaleCurtis 2012/11/01 00:16:33 I don't know how that would work? You can't post a
scherkus (not reviewing) 2012/11/01 00:47:48 I believe you're referring to https://chromiumcode
+
private:
+ void DestructOnAudioThread();
+
+ // Listens for output device changes.
+ base::Closure listener_cb_;
+ scoped_ptr<AudioDeviceListenerMac> output_device_listener_;
+
DISALLOW_COPY_AND_ASSIGN(AudioManagerMac);
};

Powered by Google App Engine
This is Rietveld 408576698