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

Unified Diff: content/browser/renderer_host/media/audio_renderer_host.cc

Issue 880393002: Fix webrtcAudioPrivate API to handle requests from <webview>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test Created 5 years, 11 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/browser/renderer_host/media/audio_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_renderer_host.cc b/content/browser/renderer_host/media/audio_renderer_host.cc
index 43555fcdb199dc73592b7e48f748d4cb73d16585..85ac36e4431161cbb53b86d4a9318ab94e6e273a 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host.cc
@@ -146,14 +146,11 @@ AudioRendererHost::~AudioRendererHost() {
}
void AudioRendererHost::GetOutputControllers(
- int render_view_id,
- const RenderViewHost::GetAudioOutputControllersCallback& callback) const {
+ const RenderProcessHost::GetAudioOutputControllersCallback&
+ callback) const {
BrowserThread::PostTaskAndReplyWithResult(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&AudioRendererHost::DoGetOutputControllers, this,
- render_view_id),
- callback);
+ BrowserThread::IO, FROM_HERE,
+ base::Bind(&AudioRendererHost::DoGetOutputControllers, this), callback);
}
void AudioRendererHost::OnChannelClosing() {
@@ -281,17 +278,15 @@ void AudioRendererHost::DoNotifyStreamStateChanged(int stream_id,
UpdateNumPlayingStreams(entry, is_playing);
}
-RenderViewHost::AudioOutputControllerList
-AudioRendererHost::DoGetOutputControllers(int render_view_id) const {
+RenderProcessHost::AudioOutputControllerList
+AudioRendererHost::DoGetOutputControllers() const {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- RenderViewHost::AudioOutputControllerList controllers;
+ RenderProcessHost::AudioOutputControllerList controllers;
for (AudioEntryMap::const_iterator it = audio_entries_.begin();
it != audio_entries_.end();
++it) {
- AudioEntry* entry = it->second;
- if (entry->render_view_id() == render_view_id)
- controllers.push_back(entry->controller());
+ controllers.push_back(it->second->controller());
}
return controllers;
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.h ('k') | content/browser/renderer_host/render_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698