OLD | NEW |
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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 blink::WebVRClient* webVRClient() override; | 629 blink::WebVRClient* webVRClient() override; |
630 #endif | 630 #endif |
631 | 631 |
632 // WebFrameSerializerClient implementation: | 632 // WebFrameSerializerClient implementation: |
633 void didSerializeDataForFrame( | 633 void didSerializeDataForFrame( |
634 const blink::WebCString& data, | 634 const blink::WebCString& data, |
635 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 635 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
636 override; | 636 override; |
637 | 637 |
638 // Binds this render frame's service registry. | 638 // Binds this render frame's service registry. |
639 void BindServiceRegistry( | 639 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, |
640 mojo::shell::mojom::InterfaceProviderRequest services, | 640 shell::mojom::InterfaceProviderPtr exposed_services); |
641 mojo::shell::mojom::InterfaceProviderPtr exposed_services); | |
642 | 641 |
643 ManifestManager* manifest_manager(); | 642 ManifestManager* manifest_manager(); |
644 | 643 |
645 // TODO(creis): Remove when the only caller, the HistoryController, is no | 644 // TODO(creis): Remove when the only caller, the HistoryController, is no |
646 // more. | 645 // more. |
647 void SetPendingNavigationParams( | 646 void SetPendingNavigationParams( |
648 std::unique_ptr<NavigationParams> navigation_params); | 647 std::unique_ptr<NavigationParams> navigation_params); |
649 | 648 |
650 media::MediaPermission* GetMediaPermission(); | 649 media::MediaPermission* GetMediaPermission(); |
651 | 650 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 const media::WebMediaPlayerParams& params); | 952 const media::WebMediaPlayerParams& params); |
954 | 953 |
955 RendererMediaPlayerManager* GetMediaPlayerManager(); | 954 RendererMediaPlayerManager* GetMediaPlayerManager(); |
956 | 955 |
957 RendererMediaSessionManager* GetMediaSessionManager(); | 956 RendererMediaSessionManager* GetMediaSessionManager(); |
958 #endif | 957 #endif |
959 | 958 |
960 bool AreSecureCodecsSupported(); | 959 bool AreSecureCodecsSupported(); |
961 | 960 |
962 #if defined(ENABLE_MOJO_MEDIA) | 961 #if defined(ENABLE_MOJO_MEDIA) |
963 mojo::shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); | 962 shell::mojom::InterfaceProvider* GetMediaInterfaceProvider(); |
964 #endif | 963 #endif |
965 | 964 |
966 media::CdmFactory* GetCdmFactory(); | 965 media::CdmFactory* GetCdmFactory(); |
967 media::DecoderFactory* GetDecoderFactory(); | 966 media::DecoderFactory* GetDecoderFactory(); |
968 | 967 |
969 void RegisterMojoServices(); | 968 void RegisterMojoServices(); |
970 | 969 |
971 // Connect to an interface provided by the service registry. | 970 // Connect to an interface provided by the service registry. |
972 template <typename Interface> | 971 template <typename Interface> |
973 void GetInterface(mojo::InterfaceRequest<Interface> request); | 972 void GetInterface(mojo::InterfaceRequest<Interface> request); |
974 | 973 |
975 // Connects to a Mojo application and returns a proxy to its exposed | 974 // Connects to a Mojo application and returns a proxy to its exposed |
976 // ServiceProvider. | 975 // ServiceProvider. |
977 mojo::shell::mojom::InterfaceProviderPtr ConnectToApplication( | 976 shell::mojom::InterfaceProviderPtr ConnectToApplication(const GURL& url); |
978 const GURL& url); | |
979 | 977 |
980 // Returns the media delegate for WebMediaPlayer usage. If | 978 // Returns the media delegate for WebMediaPlayer usage. If |
981 // |media_player_delegate_| is NULL, one is created. | 979 // |media_player_delegate_| is NULL, one is created. |
982 media::RendererWebMediaPlayerDelegate* GetWebMediaPlayerDelegate(); | 980 media::RendererWebMediaPlayerDelegate* GetWebMediaPlayerDelegate(); |
983 | 981 |
984 // Called to get the WebPlugin to handle find requests in the document. | 982 // Called to get the WebPlugin to handle find requests in the document. |
985 // Returns nullptr if there is no such WebPlugin. | 983 // Returns nullptr if there is no such WebPlugin. |
986 blink::WebPlugin* GetWebPluginForFind(); | 984 blink::WebPlugin* GetWebPluginForFind(); |
987 | 985 |
988 // Sends a reply to the current find operation handling if it was a | 986 // Sends a reply to the current find operation handling if it was a |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 PushMessagingDispatcher* push_messaging_dispatcher_; | 1167 PushMessagingDispatcher* push_messaging_dispatcher_; |
1170 | 1168 |
1171 // The presentation dispatcher implementation attached to this frame, lazily | 1169 // The presentation dispatcher implementation attached to this frame, lazily |
1172 // initialized. | 1170 // initialized. |
1173 PresentationDispatcher* presentation_dispatcher_; | 1171 PresentationDispatcher* presentation_dispatcher_; |
1174 | 1172 |
1175 ServiceRegistryImpl service_registry_; | 1173 ServiceRegistryImpl service_registry_; |
1176 BlinkServiceRegistryImpl blink_service_registry_; | 1174 BlinkServiceRegistryImpl blink_service_registry_; |
1177 | 1175 |
1178 // The shell proxy used to connect to Mojo applications. | 1176 // The shell proxy used to connect to Mojo applications. |
1179 mojo::shell::mojom::ConnectorPtr connector_; | 1177 shell::mojom::ConnectorPtr connector_; |
1180 | 1178 |
1181 // The screen orientation dispatcher attached to the frame, lazily | 1179 // The screen orientation dispatcher attached to the frame, lazily |
1182 // initialized. | 1180 // initialized. |
1183 ScreenOrientationDispatcher* screen_orientation_dispatcher_; | 1181 ScreenOrientationDispatcher* screen_orientation_dispatcher_; |
1184 | 1182 |
1185 // The Manifest Manager handles the manifest requests from the browser | 1183 // The Manifest Manager handles the manifest requests from the browser |
1186 // process. | 1184 // process. |
1187 ManifestManager* manifest_manager_; | 1185 ManifestManager* manifest_manager_; |
1188 | 1186 |
1189 // The current accessibility mode. | 1187 // The current accessibility mode. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 FrameBlameContext* blame_context_; // Not owned. | 1227 FrameBlameContext* blame_context_; // Not owned. |
1230 | 1228 |
1231 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1229 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1232 | 1230 |
1233 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1231 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1234 }; | 1232 }; |
1235 | 1233 |
1236 } // namespace content | 1234 } // namespace content |
1237 | 1235 |
1238 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1236 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |