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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1930393002: Switch stream creation and closing in Chrome audio rendering from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unique_ptr for Binding Created 4 years, 7 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 | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 420a2c2795d7512d3ac241213dc4854290d45737..4898cbcd151ca0da318e6b095dba8ad72ba624eb 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -24,6 +24,7 @@
#include "content/browser/accessibility/browser_accessibility_manager.h"
#include "content/browser/bad_message.h"
#include "content/browser/loader/global_routing_id.h"
+#include "content/browser/media/audio_output_impl.h"
#include "content/browser/site_instance_impl.h"
#include "content/browser/webui/web_ui_impl.h"
#include "content/common/accessibility_mode_enums.h"
@@ -204,6 +205,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// after they are blocked in RenderWidgetHelper::CreateNewWindow.
void Init();
+ void set_audio_output_impl(AudioOutputImpl* audio_output_impl) {
+ audio_output_impl_ = audio_output_impl;
+ }
+
int routing_id() const { return routing_id_; }
void OnCreateChildFrame(
int new_routing_id,
@@ -847,6 +852,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// RenderFrameHost.
bool navigations_suspended_;
+ AudioOutputImpl* audio_output_impl_;
+
// Holds the parameters for a suspended navigation. This can only happen while
// this RFH is the pending RenderFrameHost of a RenderFrameHostManager. There
// will only ever be one suspended navigation, because RenderFrameHostManager
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698