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

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

Issue 10580033: Allow AudioDevice to be constructed on any thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
Index: content/renderer/media/audio_message_filter.h
===================================================================
--- content/renderer/media/audio_message_filter.h (revision 142824)
+++ content/renderer/media/audio_message_filter.h (working copy)
@@ -54,6 +54,9 @@
virtual void OnFilterRemoved() OVERRIDE;
virtual void OnChannelClosing() OVERRIDE;
+ // Getter for the one AudioMessageFilter object.
+ static AudioMessageFilter* current() { return filter_; }
tommi (sloooow) - chröme 2012/06/20 07:48:30 no thread check?
+
protected:
virtual ~AudioMessageFilter();
@@ -80,6 +83,9 @@
IPC::Channel* channel_;
+ // The singleton instance for this filter.
tommi (sloooow) - chröme 2012/06/20 07:48:30 document thread usage
+ static AudioMessageFilter* filter_;
+
DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698