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

Unified Diff: content/renderer/pepper/pepper_platform_audio_output.cc

Issue 2289543003: IPC->mojo of audio_renderer_host (Closed)
Patch Set: New interface. Created 4 years, 3 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.cc
diff --git a/content/renderer/pepper/pepper_platform_audio_output.cc b/content/renderer/pepper/pepper_platform_audio_output.cc
index 9c0359dae7218a26cc58515e9d73d60b54284b2b..751a12b681c88341f588f5b777e0cdc0f55e1dd8 100644
--- a/content/renderer/pepper/pepper_platform_audio_output.cc
+++ b/content/renderer/pepper/pepper_platform_audio_output.cc
@@ -12,9 +12,10 @@
#include "build/build_config.h"
#include "content/child/child_process.h"
#include "content/common/media/audio_messages.h"
-#include "content/renderer/media/audio_message_filter.h"
+#include "content/renderer/media/audio_output_ipc_factory.h"
#include "content/renderer/pepper/audio_helper.h"
#include "content/renderer/render_thread_impl.h"
+#include "media/media_features.h"
#include "ppapi/shared_impl/ppb_audio_config_shared.h"
namespace content {
@@ -80,7 +81,7 @@ void PepperPlatformAudioOutput::ShutDown() {
}
void PepperPlatformAudioOutput::OnStateChanged(
- media::AudioOutputIPCDelegateState state) {}
+ media::mojom::AudioOutputStreamState state) {}
void PepperPlatformAudioOutput::OnDeviceAuthorized(
media::OutputDeviceStatus device_status,
@@ -137,7 +138,7 @@ bool PepperPlatformAudioOutput::Initialize(int sample_rate,
client_ = client;
RenderThreadImpl* const render_thread = RenderThreadImpl::current();
- ipc_ = render_thread->audio_message_filter()->CreateAudioOutputIPC(
+ ipc_ = render_thread->audio_output_ipc_factory()->CreateAudioOutputIPC(
source_render_frame_id);
CHECK(ipc_);

Powered by Google App Engine
This is Rietveld 408576698