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

Unified Diff: content/renderer/media/audio_message_filter.h

Issue 10537121: Adds AudioDevice factory for all audio clients in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 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 | « content/renderer/media/audio_device_factory.cc ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_message_filter.h
diff --git a/content/renderer/media/audio_message_filter.h b/content/renderer/media/audio_message_filter.h
index 40faeabec271c8d6fbd2c8c0ec3d5c4e221d9340..598600a92df30c4c5dbd418ee5cfe39cfeb13635 100644
--- a/content/renderer/media/audio_message_filter.h
+++ b/content/renderer/media/audio_message_filter.h
@@ -39,6 +39,9 @@ class CONTENT_EXPORT AudioMessageFilter
AudioMessageFilter();
+ // Getter for the one AudioMessageFilter object.
+ static AudioMessageFilter* Get();
+
// Add a delegate to the map and return id of the entry.
int32 AddDelegate(Delegate* delegate);
@@ -75,6 +78,9 @@ class CONTENT_EXPORT AudioMessageFilter
// changed.
void OnStreamStateChanged(int stream_id, AudioStreamState state);
+ // The singleton instance for this filter.
+ static AudioMessageFilter* filter_;
+
// A map of stream ids to delegates.
IDMap<Delegate> delegates_;
« no previous file with comments | « content/renderer/media/audio_device_factory.cc ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698