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

Unified Diff: content/renderer/pepper/pepper_platform_audio_input_impl.h

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Plus, removed CalledOnValidThread DCHECK from sampleRate() call since nothing mutates. Created 8 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/renderer/pepper/pepper_platform_audio_input_impl.h
diff --git a/content/renderer/pepper/pepper_platform_audio_input_impl.h b/content/renderer/pepper/pepper_platform_audio_input_impl.h
index 864afa191d0eb8b8c5da7c7ee37b4fb748568249..5dac69663c55cea738fc5ee7dabdfcd901fb798d 100644
--- a/content/renderer/pepper/pepper_platform_audio_input_impl.h
+++ b/content/renderer/pepper/pepper_platform_audio_input_impl.h
@@ -21,6 +21,7 @@ class AudioParameters;
namespace content {
+class AudioInputMessageFilter;
class PepperPluginDelegateImpl;
// PepperPlatformAudioInputImpl is operated on two threads: the main thread (the
@@ -93,12 +94,15 @@ class PepperPlatformAudioInputImpl
// Used to send/receive IPC. THIS MUST ONLY BE ACCESSED ON THE
// I/O thread except to send messages and get the message loop.
- media::AudioInputIPC* ipc_;
+ scoped_refptr<AudioInputMessageFilter> ipc_;
// Our ID on the MessageFilter. THIS MUST ONLY BE ACCESSED ON THE I/O THREAD
// or else you could race with the initialize function which sets it.
int32 stream_id_;
+ // The render view into which the audio is sent.
+ int render_view_id_;
+
base::MessageLoopProxy* main_message_loop_proxy_;
// THIS MUST ONLY BE ACCESSED ON THE MAIN THREAD.
« no previous file with comments | « content/renderer/media/webrtc_audio_renderer.cc ('k') | content/renderer/pepper/pepper_platform_audio_input_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698