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); |
}; |