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

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

Issue 2521133002: media: Add MediaInterfaceProxy (Closed)
Patch Set: comments addressed Created 4 years 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/browser/BUILD.gn ('k') | 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 1edf89248c3f3955dbd7ba55128e9961ca15cbd9..d5b377229f4aa7e8de78df3eaf267aeea392ba50 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -79,6 +79,7 @@ class AssociatedInterfaceProviderImpl;
class CrossProcessFrameConnector;
class FrameTree;
class FrameTreeNode;
+class MediaInterfaceProxy;
class NavigationHandleImpl;
class PermissionServiceContext;
class RenderFrameHostDelegate;
@@ -196,10 +197,6 @@ class CONTENT_EXPORT RenderFrameHostImpl
// SiteInstanceImpl::Observer
void RenderProcessGone(SiteInstanceImpl* site_instance) override;
- // service_manager::InterfaceFactory<media::mojom::InterfaceFactory>
- void Create(const service_manager::Identity& remote_identity,
- media::mojom::InterfaceFactoryRequest request) override;
-
// Creates a RenderFrame in the renderer process.
bool CreateRenderFrame(int proxy_routing_id,
int opener_routing_id,
@@ -805,6 +802,13 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Deletes the Web Bluetooth Service owned by the frame.
void DeleteWebBluetoothService();
+ // service_manager::InterfaceFactory<media::mojom::InterfaceFactory>
+ void Create(const service_manager::Identity& remote_identity,
+ media::mojom::InterfaceFactoryRequest request) override;
+
+ // Callback for connection error on the media::mojom::InterfaceFactory client.
+ void OnMediaInterfaceFactoryConnectionError();
+
// Allows tests to disable the swapout event timer to simulate bugs that
// happen before it fires (to avoid flakiness).
void DisableSwapOutTimerForTesting();
@@ -1065,6 +1069,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// |FrameHostMsg_TextSurroundingSelectionResponse| message comes.
TextSurroundingSelectionCallback text_surrounding_selection_callback_;
+ // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards
+ // media::mojom::InterfaceFactory calls to the remote "media" service.
+ std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_;
+
std::vector<std::unique_ptr<service_manager::InterfaceRegistry>>
media_registries_;
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698