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

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

Issue 10835025: Plumb render view ID to media observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/pepper/pepper_platform_audio_output_impl.h
diff --git a/content/renderer/pepper/pepper_platform_audio_output_impl.h b/content/renderer/pepper/pepper_platform_audio_output_impl.h
index 3b426adbf7a6fe1d7b2e8989b9c3ad37f3ef1b41..75d3517c8e65a9e8a50f334e89428e634b9e12c9 100644
--- a/content/renderer/pepper/pepper_platform_audio_output_impl.h
+++ b/content/renderer/pepper/pepper_platform_audio_output_impl.h
@@ -10,6 +10,8 @@
#include "content/renderer/media/audio_message_filter.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
+class RenderViewImpl;
+
namespace media{
class AudioParameters;
}
@@ -28,6 +30,7 @@ class PepperPlatformAudioOutputImpl
// Factory function, returns NULL on failure. StreamCreated() will be called
// when the stream is created.
static PepperPlatformAudioOutputImpl* Create(
+ RenderViewImpl* render_view,
int sample_rate,
int frames_per_buffer,
webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client);
@@ -52,6 +55,7 @@ class PepperPlatformAudioOutputImpl
PepperPlatformAudioOutputImpl();
bool Initialize(
+ RenderViewImpl* render_view,
int sample_rate,
int frames_per_buffer,
webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client);
@@ -62,6 +66,8 @@ class PepperPlatformAudioOutputImpl
void StopPlaybackOnIOThread();
void ShutDownOnIOThread();
+ RenderViewImpl* render_view_;
+
// The client to notify when the stream is created. THIS MUST ONLY BE
// ACCESSED ON THE MAIN THREAD.
webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client_;
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/pepper/pepper_platform_audio_output_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698