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

Unified Diff: content/renderer/media/audio_device.cc

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
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_device_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.cc
diff --git a/content/renderer/media/audio_device.cc b/content/renderer/media/audio_device.cc
index 9936ebd4b387f71f989c88f4f5f3f31ed646f677..c90db7283068497c6f611a7e42e75bea2e806f53 100644
--- a/content/renderer/media/audio_device.cc
+++ b/content/renderer/media/audio_device.cc
@@ -38,8 +38,10 @@ class AudioDevice::AudioThreadCallback
};
AudioDevice::AudioDevice(
+ content::RenderView* render_view,
const scoped_refptr<base::MessageLoopProxy>& io_loop)
: ScopedLoopObserver(io_loop),
+ render_view_(render_view),
callback_(NULL),
stream_id_(0),
play_on_start_(true),
@@ -113,7 +115,8 @@ void AudioDevice::CreateStreamOnIOThread(const media::AudioParameters& params) {
return;
stream_id_ = filter_->AddDelegate(this);
- Send(new AudioHostMsg_CreateStream(stream_id_, params));
+ // TODO(sailesh)
+ Send(new AudioHostMsg_CreateStream(0, stream_id_, params));
}
void AudioDevice::PlayOnIOThread() {
« no previous file with comments | « content/renderer/media/audio_device.h ('k') | content/renderer/media/audio_device_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698