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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 class ChildFrameCompositingHelper; | 113 class ChildFrameCompositingHelper; |
114 class CompositorDependencies; | 114 class CompositorDependencies; |
115 class DevToolsAgent; | 115 class DevToolsAgent; |
116 class DocumentState; | 116 class DocumentState; |
117 class ExternalPopupMenu; | 117 class ExternalPopupMenu; |
118 class GeolocationDispatcher; | 118 class GeolocationDispatcher; |
119 class ManifestManager; | 119 class ManifestManager; |
120 class MediaStreamDispatcher; | 120 class MediaStreamDispatcher; |
121 class MediaStreamRendererFactory; | 121 class MediaStreamRendererFactory; |
122 class MediaPermissionDispatcherImpl; | 122 class MediaPermissionDispatcher; |
123 class MidiDispatcher; | 123 class MidiDispatcher; |
124 class NavigationState; | 124 class NavigationState; |
125 class NotificationPermissionDispatcher; | 125 class NotificationPermissionDispatcher; |
126 class PageState; | 126 class PageState; |
127 class PepperPluginInstanceImpl; | 127 class PepperPluginInstanceImpl; |
128 class PermissionDispatcher; | 128 class PermissionDispatcher; |
129 class PresentationDispatcher; | 129 class PresentationDispatcher; |
130 class PushMessagingDispatcher; | 130 class PushMessagingDispatcher; |
131 class RendererAccessibility; | 131 class RendererAccessibility; |
132 class RendererCdmManager; | 132 class RendererCdmManager; |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 638 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
639 mojo::ServiceProviderPtr exposed_services); | 639 mojo::ServiceProviderPtr exposed_services); |
640 | 640 |
641 ManifestManager* manifest_manager(); | 641 ManifestManager* manifest_manager(); |
642 | 642 |
643 // TODO(creis): Remove when the only caller, the HistoryController, is no | 643 // TODO(creis): Remove when the only caller, the HistoryController, is no |
644 // more. | 644 // more. |
645 void SetPendingNavigationParams( | 645 void SetPendingNavigationParams( |
646 scoped_ptr<NavigationParams> navigation_params); | 646 scoped_ptr<NavigationParams> navigation_params); |
647 | 647 |
648 // Expose MediaPermission to the non-UI threads. Any calls to this will be | 648 media::MediaPermission* GetMediaPermission(); |
649 // redirected to |media_permission_dispatcher_| on UI thread and have the | |
650 // callback called on |caller_task_runner|. | |
651 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( | |
652 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); | |
653 | 649 |
654 // Sends the current frame's navigation state to the browser. | 650 // Sends the current frame's navigation state to the browser. |
655 void SendUpdateState(); | 651 void SendUpdateState(); |
656 | 652 |
657 // Creates a MojoBindingsController to allow WebUI documents to communicate | 653 // Creates a MojoBindingsController to allow WebUI documents to communicate |
658 // with the browser process. If |for_layout_tests| is true, the module system | 654 // with the browser process. If |for_layout_tests| is true, the module system |
659 // is exposed on a global "mojo" object rather than "define". | 655 // is exposed on a global "mojo" object rather than "define". |
660 void EnableMojoBindings(bool for_layout_tests); | 656 void EnableMojoBindings(bool for_layout_tests); |
661 | 657 |
662 protected: | 658 protected: |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 940 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
945 const media::WebMediaPlayerParams& params); | 941 const media::WebMediaPlayerParams& params); |
946 | 942 |
947 RendererMediaPlayerManager* GetMediaPlayerManager(); | 943 RendererMediaPlayerManager* GetMediaPlayerManager(); |
948 | 944 |
949 RendererMediaSessionManager* GetMediaSessionManager(); | 945 RendererMediaSessionManager* GetMediaSessionManager(); |
950 #endif | 946 #endif |
951 | 947 |
952 bool AreSecureCodecsSupported(); | 948 bool AreSecureCodecsSupported(); |
953 | 949 |
954 media::MediaPermission* GetMediaPermission(); | |
955 | |
956 #if defined(ENABLE_MOJO_MEDIA) | 950 #if defined(ENABLE_MOJO_MEDIA) |
957 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 951 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
958 | 952 |
959 // Called when a connection error happened on |media_service_factory_|. | 953 // Called when a connection error happened on |media_service_factory_|. |
960 void OnMediaServiceFactoryConnectionError(); | 954 void OnMediaServiceFactoryConnectionError(); |
961 #endif | 955 #endif |
962 | 956 |
963 media::CdmFactory* GetCdmFactory(); | 957 media::CdmFactory* GetCdmFactory(); |
964 | 958 |
965 void RegisterMojoServices(); | 959 void RegisterMojoServices(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 // Dispatches permission requests for Web Notifications. | 1092 // Dispatches permission requests for Web Notifications. |
1099 NotificationPermissionDispatcher* notification_permission_dispatcher_; | 1093 NotificationPermissionDispatcher* notification_permission_dispatcher_; |
1100 | 1094 |
1101 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 1095 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
1102 UserMediaClientImpl* web_user_media_client_; | 1096 UserMediaClientImpl* web_user_media_client_; |
1103 | 1097 |
1104 // EncryptedMediaClient attached to this frame; lazily initialized. | 1098 // EncryptedMediaClient attached to this frame; lazily initialized. |
1105 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 1099 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
1106 | 1100 |
1107 // The media permission dispatcher attached to this frame, lazily initialized. | 1101 // The media permission dispatcher attached to this frame, lazily initialized. |
1108 MediaPermissionDispatcherImpl* media_permission_dispatcher_; | 1102 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
| 1103 MediaPermissionDispatcher* media_permission_dispatcher_; |
1109 | 1104 |
1110 #if defined(ENABLE_MOJO_MEDIA) | 1105 #if defined(ENABLE_MOJO_MEDIA) |
1111 // The media factory attached to this frame, lazily initialized. | 1106 // The media factory attached to this frame, lazily initialized. |
1112 media::interfaces::ServiceFactoryPtr media_service_factory_; | 1107 media::interfaces::ServiceFactoryPtr media_service_factory_; |
1113 #endif | 1108 #endif |
1114 | 1109 |
1115 // MidiClient attached to this frame; lazily initialized. | 1110 // MidiClient attached to this frame; lazily initialized. |
1116 MidiDispatcher* midi_dispatcher_; | 1111 MidiDispatcher* midi_dispatcher_; |
1117 | 1112 |
1118 #if defined(OS_ANDROID) | 1113 #if defined(OS_ANDROID) |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 #endif | 1203 #endif |
1209 | 1204 |
1210 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1205 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1211 | 1206 |
1212 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1207 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1213 }; | 1208 }; |
1214 | 1209 |
1215 } // namespace content | 1210 } // namespace content |
1216 | 1211 |
1217 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1212 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |