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

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: 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
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 45d8ca0cffc75a6862df86dcbaef4b24a71fe007..dd0321f6922995074c4187358b39d355b990eb31 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"
@@ -70,7 +71,7 @@ class WebBluetoothService;
}
namespace content {
-
+class AudioOutputImpl;
class CrossProcessFrameConnector;
class CrossSiteTransferringRequest;
class FrameMojoShell;
@@ -115,6 +116,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
~RenderFrameHostImpl() override;
// RenderFrameHost
+ AudioOutputImpl* GetAudioOutputImpl() override;
+
+ void SetAudioOutputImpl(AudioOutputImpl* audio_output_impl) override;
+
int GetRoutingID() override;
AXTreeIDRegistry::AXTreeID GetAXTreeID() override;
SiteInstanceImpl* GetSiteInstance() override;
@@ -756,6 +761,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// happen before it fires (to avoid flakiness).
void DisableSwapOutTimerForTesting();
+ AudioOutputImpl* audio_output_impl_;
+
// For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
// refcount that calls Shutdown when it reaches zero. This allows each
// RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | content/browser/media/audio_output_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698