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

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

Issue 10836025: Part 1: Plumb render view ID to render host (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments 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 5fab0e4af4b3748aebc4d7feea7b259d5fd2f92b..ce70b0b06d4bf3d5cbd5f5da9073982b8df8b097 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 "media/audio/audio_output_ipc.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
+class AudioOutputIPCImpl;
+
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(
+ int render_view_id,
int sample_rate,
int frames_per_buffer,
webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client);
@@ -51,7 +54,7 @@ class PepperPlatformAudioOutputImpl
private:
friend class base::RefCountedThreadSafe<PepperPlatformAudioOutputImpl>;
- PepperPlatformAudioOutputImpl();
+ PepperPlatformAudioOutputImpl(int render_view_id);
bool Initialize(
int sample_rate,
@@ -70,7 +73,7 @@ class PepperPlatformAudioOutputImpl
// 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::AudioOutputIPC* ipc_;
+ scoped_ptr<AudioOutputIPCImpl> 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.

Powered by Google App Engine
This is Rietveld 408576698