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

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

Issue 12383016: Merge AssociateStreamWithProducer message into CreateStream message for both audio output and input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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_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 7d71347d5a53d1a1d82501ae067730756a1cf6c2..0cfa92dd57a2075df4cadf9344350b0391f37985 100644
--- a/content/renderer/pepper/pepper_platform_audio_input_impl.h
+++ b/content/renderer/pepper/pepper_platform_audio_input_impl.h
@@ -9,9 +9,9 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "content/renderer/media/audio_input_message_filter.h"
+#include "media/audio/audio_input_ipc.h"
#include "media/audio/audio_parameters.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
@@ -21,7 +21,6 @@ class AudioParameters;
namespace content {
-class AudioInputMessageFilter;
class PepperPluginDelegateImpl;
// PepperPlatformAudioInputImpl is operated on two threads: the main thread (the
@@ -93,15 +92,8 @@ class PepperPlatformAudioInputImpl
webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client_;
// Used to send/receive IPC. THIS MUST ONLY BE ACCESSED ON THE
- // I/O thread except to send messages and get the message loop.
- 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_;
+ // I/O THREAD.
+ scoped_ptr<media::AudioInputIPC> ipc_;
base::MessageLoopProxy* main_message_loop_proxy_;
@@ -112,10 +104,6 @@ class PepperPlatformAudioInputImpl
// THE MAIN THREAD.
std::string label_;
- // Whether ShutDownOnIOThread() has been called. THIS MUST ONLY BE ACCESSED ON
- // THE I/O THREAD.
- bool shutdown_called_;
-
// Initialized on the main thread and accessed on the I/O thread afterwards.
media::AudioParameters params_;
« no previous file with comments | « content/renderer/media/webrtc_local_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