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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2521133002: media: Add MediaInterfaceProxy (Closed)
Patch Set: rebase only 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 namespace gfx { 72 namespace gfx {
73 class Range; 73 class Range;
74 } 74 }
75 75
76 namespace content { 76 namespace content {
77 class AppWebMessagePortMessageFilter; 77 class AppWebMessagePortMessageFilter;
78 class AssociatedInterfaceProviderImpl; 78 class AssociatedInterfaceProviderImpl;
79 class CrossProcessFrameConnector; 79 class CrossProcessFrameConnector;
80 class FrameTree; 80 class FrameTree;
81 class FrameTreeNode; 81 class FrameTreeNode;
82 class MediaInterfaceProxy;
82 class NavigationHandleImpl; 83 class NavigationHandleImpl;
83 class PermissionServiceContext; 84 class PermissionServiceContext;
84 class RenderFrameHostDelegate; 85 class RenderFrameHostDelegate;
85 class RenderFrameProxyHost; 86 class RenderFrameProxyHost;
86 class RenderProcessHost; 87 class RenderProcessHost;
87 class RenderViewHostImpl; 88 class RenderViewHostImpl;
88 class RenderWidgetHostDelegate; 89 class RenderWidgetHostDelegate;
89 class RenderWidgetHostImpl; 90 class RenderWidgetHostImpl;
90 class RenderWidgetHostView; 91 class RenderWidgetHostView;
91 class RenderWidgetHostViewBase; 92 class RenderWidgetHostViewBase;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 gfx::Rect AccessibilityGetViewBounds() const override; 190 gfx::Rect AccessibilityGetViewBounds() const override;
190 gfx::Point AccessibilityOriginInScreen( 191 gfx::Point AccessibilityOriginInScreen(
191 const gfx::Rect& bounds) const override; 192 const gfx::Rect& bounds) const override;
192 void AccessibilityFatalError() override; 193 void AccessibilityFatalError() override;
193 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; 194 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override;
194 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; 195 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override;
195 196
196 // SiteInstanceImpl::Observer 197 // SiteInstanceImpl::Observer
197 void RenderProcessGone(SiteInstanceImpl* site_instance) override; 198 void RenderProcessGone(SiteInstanceImpl* site_instance) override;
198 199
199 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory>
200 void Create(const service_manager::Identity& remote_identity,
201 media::mojom::InterfaceFactoryRequest request) override;
202
203 // Creates a RenderFrame in the renderer process. 200 // Creates a RenderFrame in the renderer process.
204 bool CreateRenderFrame(int proxy_routing_id, 201 bool CreateRenderFrame(int proxy_routing_id,
205 int opener_routing_id, 202 int opener_routing_id,
206 int parent_routing_id, 203 int parent_routing_id,
207 int previous_sibling_routing_id); 204 int previous_sibling_routing_id);
208 205
209 // Tracks whether the RenderFrame for this RenderFrameHost has been created in 206 // Tracks whether the RenderFrame for this RenderFrameHost has been created in
210 // the renderer process. This is currently only used for subframes. 207 // the renderer process. This is currently only used for subframes.
211 // TODO(creis): Use this for main frames as well when RVH goes away. 208 // TODO(creis): Use this for main frames as well when RVH goes away.
212 void SetRenderFrameCreated(bool created); 209 void SetRenderFrameCreated(bool created);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 bad_message::BadMessageReason reason); 795 bad_message::BadMessageReason reason);
799 796
800 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer 797 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer
801 // to it. 798 // to it.
802 WebBluetoothServiceImpl* CreateWebBluetoothService( 799 WebBluetoothServiceImpl* CreateWebBluetoothService(
803 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); 800 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request);
804 801
805 // Deletes the Web Bluetooth Service owned by the frame. 802 // Deletes the Web Bluetooth Service owned by the frame.
806 void DeleteWebBluetoothService(); 803 void DeleteWebBluetoothService();
807 804
805 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory>
806 void Create(const service_manager::Identity& remote_identity,
807 media::mojom::InterfaceFactoryRequest request) override;
808
809 // Callback for connection error on the media::mojom::InterfaceFactory client.
810 void OnMediaInterfaceFactoryConnectionError();
811
808 // Allows tests to disable the swapout event timer to simulate bugs that 812 // Allows tests to disable the swapout event timer to simulate bugs that
809 // happen before it fires (to avoid flakiness). 813 // happen before it fires (to avoid flakiness).
810 void DisableSwapOutTimerForTesting(); 814 void DisableSwapOutTimerForTesting();
811 815
812 void OnRendererConnect(const service_manager::ServiceInfo& local_info, 816 void OnRendererConnect(const service_manager::ServiceInfo& local_info,
813 const service_manager::ServiceInfo& remote_info); 817 const service_manager::ServiceInfo& remote_info);
814 818
819
nasko 2016/12/02 22:18:09 nit: Unneeded empty line.
xhwang 2016/12/02 23:42:21 Done.
815 // Returns ownership of the NavigationHandle associated with a navigation that 820 // Returns ownership of the NavigationHandle associated with a navigation that
816 // just committed. 821 // just committed.
817 std::unique_ptr<NavigationHandleImpl> TakeNavigationHandleForCommit( 822 std::unique_ptr<NavigationHandleImpl> TakeNavigationHandleForCommit(
818 const FrameHostMsg_DidCommitProvisionalLoad_Params& params); 823 const FrameHostMsg_DidCommitProvisionalLoad_Params& params);
819 824
820 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a 825 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
821 // refcount that calls Shutdown when it reaches zero. This allows each 826 // refcount that calls Shutdown when it reaches zero. This allows each
822 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring 827 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
823 // we have a RenderViewHost for each RenderFrameHost. 828 // we have a RenderViewHost for each RenderFrameHost.
824 // TODO(creis): RenderViewHost will eventually go away and be replaced with 829 // TODO(creis): RenderViewHost will eventually go away and be replaced with
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 bool waiting_for_init_; 1063 bool waiting_for_init_;
1059 1064
1060 typedef std::pair<CommonNavigationParams, BeginNavigationParams> 1065 typedef std::pair<CommonNavigationParams, BeginNavigationParams>
1061 PendingNavigation; 1066 PendingNavigation;
1062 std::unique_ptr<PendingNavigation> pendinging_navigate_; 1067 std::unique_ptr<PendingNavigation> pendinging_navigate_;
1063 1068
1064 // Callback for responding when 1069 // Callback for responding when
1065 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. 1070 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes.
1066 TextSurroundingSelectionCallback text_surrounding_selection_callback_; 1071 TextSurroundingSelectionCallback text_surrounding_selection_callback_;
1067 1072
1073 // Hosts media::mojom::InterfaceFactory for the render frame and forwards
nasko 2016/12/02 22:18:09 nit: RenderFrame
xhwang 2016/12/02 23:42:21 Done.
1074 // media::mojom::InterfaceFactory calls to the remote service:media.
1075 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_;
1076
1068 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> 1077 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>>
1069 media_registries_; 1078 media_registries_;
1070 1079
1071 std::unique_ptr<AssociatedInterfaceProviderImpl> 1080 std::unique_ptr<AssociatedInterfaceProviderImpl>
1072 remote_associated_interfaces_; 1081 remote_associated_interfaces_;
1073 // NOTE: This must be the last member. 1082 // NOTE: This must be the last member.
1074 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1083 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1075 1084
1076 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1085 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1077 }; 1086 };
1078 1087
1079 } // namespace content 1088 } // namespace content
1080 1089
1081 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1090 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698