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

Unified Diff: content/browser/renderer_host/media/audio_input_device_manager.h

Issue 8818012: Remove the AudioManager singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Set svn eol properties for a couple of files Created 9 years 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: content/browser/renderer_host/media/audio_input_device_manager.h
===================================================================
--- content/browser/renderer_host/media/audio_input_device_manager.h (revision 114012)
+++ content/browser/renderer_host/media/audio_input_device_manager.h (working copy)
@@ -20,6 +20,8 @@
#include "content/common/media/media_stream_options.h"
#include "media/audio/audio_device_name.h"
+class AudioManager;
+
namespace media_stream {
class AudioInputDeviceManagerEventHandler;
@@ -34,7 +36,7 @@
static const int kInvalidSessionId;
static const char kInvalidDeviceId[];
- AudioInputDeviceManager();
+ explicit AudioInputDeviceManager(AudioManager* audio_manager);
virtual ~AudioInputDeviceManager();
// MediaStreamProvider implementation, called on IO thread.
@@ -64,6 +66,7 @@
EventHandlerMap event_handlers_;
typedef std::map<int, media::AudioDeviceName> AudioInputDeviceMap;
AudioInputDeviceMap devices_;
+ scoped_refptr<AudioManager> audio_manager_;
DISALLOW_COPY_AND_ASSIGN(AudioInputDeviceManager);
};
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | content/browser/renderer_host/media/audio_input_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698