| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 class ChildFrameCompositingHelper; | 111 class ChildFrameCompositingHelper; |
| 112 class CompositorDependencies; | 112 class CompositorDependencies; |
| 113 class DevToolsAgent; | 113 class DevToolsAgent; |
| 114 class DocumentState; | 114 class DocumentState; |
| 115 class ExternalPopupMenu; | 115 class ExternalPopupMenu; |
| 116 class GeolocationDispatcher; | 116 class GeolocationDispatcher; |
| 117 class ManifestManager; | 117 class ManifestManager; |
| 118 class MediaStreamDispatcher; | 118 class MediaStreamDispatcher; |
| 119 class MediaStreamRendererFactory; | 119 class MediaStreamRendererFactory; |
| 120 class MediaPermissionDispatcherImpl; | 120 class MediaPermissionDispatcher; |
| 121 class MidiDispatcher; | 121 class MidiDispatcher; |
| 122 class NavigationState; | 122 class NavigationState; |
| 123 class NotificationPermissionDispatcher; | 123 class NotificationPermissionDispatcher; |
| 124 class PageState; | 124 class PageState; |
| 125 class PepperPluginInstanceImpl; | 125 class PepperPluginInstanceImpl; |
| 126 class PermissionDispatcher; | 126 class PermissionDispatcher; |
| 127 class PresentationDispatcher; | 127 class PresentationDispatcher; |
| 128 class PushMessagingDispatcher; | 128 class PushMessagingDispatcher; |
| 129 class RendererAccessibility; | 129 class RendererAccessibility; |
| 130 class RendererCdmManager; | 130 class RendererCdmManager; |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 626 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 627 mojo::ServiceProviderPtr exposed_services); | 627 mojo::ServiceProviderPtr exposed_services); |
| 628 | 628 |
| 629 ManifestManager* manifest_manager(); | 629 ManifestManager* manifest_manager(); |
| 630 | 630 |
| 631 // TODO(creis): Remove when the only caller, the HistoryController, is no | 631 // TODO(creis): Remove when the only caller, the HistoryController, is no |
| 632 // more. | 632 // more. |
| 633 void SetPendingNavigationParams( | 633 void SetPendingNavigationParams( |
| 634 scoped_ptr<NavigationParams> navigation_params); | 634 scoped_ptr<NavigationParams> navigation_params); |
| 635 | 635 |
| 636 // Expose MediaPermission to the non-UI threads. Any calls to this will be | 636 media::MediaPermission* GetMediaPermission(); |
| 637 // redirected to |media_permission_dispatcher_| on UI thread and have the | |
| 638 // callback called on |caller_task_runner|. | |
| 639 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( | |
| 640 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); | |
| 641 | 637 |
| 642 // Sends the current frame's navigation state to the browser. | 638 // Sends the current frame's navigation state to the browser. |
| 643 void SendUpdateState(); | 639 void SendUpdateState(); |
| 644 | 640 |
| 645 // Creates a MojoBindingsController to allow WebUI documents to communicate | 641 // Creates a MojoBindingsController to allow WebUI documents to communicate |
| 646 // with the browser process. | 642 // with the browser process. |
| 647 void EnableMojoBindings(); | 643 void EnableMojoBindings(); |
| 648 | 644 |
| 649 protected: | 645 protected: |
| 650 explicit RenderFrameImpl(const CreateParams& params); | 646 explicit RenderFrameImpl(const CreateParams& params); |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 912 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
| 917 const media::WebMediaPlayerParams& params); | 913 const media::WebMediaPlayerParams& params); |
| 918 | 914 |
| 919 RendererMediaPlayerManager* GetMediaPlayerManager(); | 915 RendererMediaPlayerManager* GetMediaPlayerManager(); |
| 920 | 916 |
| 921 RendererMediaSessionManager* GetMediaSessionManager(); | 917 RendererMediaSessionManager* GetMediaSessionManager(); |
| 922 #endif | 918 #endif |
| 923 | 919 |
| 924 bool AreSecureCodecsSupported(); | 920 bool AreSecureCodecsSupported(); |
| 925 | 921 |
| 926 media::MediaPermission* GetMediaPermission(); | |
| 927 | |
| 928 #if defined(ENABLE_MOJO_MEDIA) | 922 #if defined(ENABLE_MOJO_MEDIA) |
| 929 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 923 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
| 930 | 924 |
| 931 // Called when a connection error happened on |media_service_factory_|. | 925 // Called when a connection error happened on |media_service_factory_|. |
| 932 void OnMediaServiceFactoryConnectionError(); | 926 void OnMediaServiceFactoryConnectionError(); |
| 933 #endif | 927 #endif |
| 934 | 928 |
| 935 media::CdmFactory* GetCdmFactory(); | 929 media::CdmFactory* GetCdmFactory(); |
| 936 | 930 |
| 937 void RegisterMojoServices(); | 931 void RegisterMojoServices(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 // Dispatches permission requests for Web Notifications. | 1050 // Dispatches permission requests for Web Notifications. |
| 1057 NotificationPermissionDispatcher* notification_permission_dispatcher_; | 1051 NotificationPermissionDispatcher* notification_permission_dispatcher_; |
| 1058 | 1052 |
| 1059 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 1053 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
| 1060 UserMediaClientImpl* web_user_media_client_; | 1054 UserMediaClientImpl* web_user_media_client_; |
| 1061 | 1055 |
| 1062 // EncryptedMediaClient attached to this frame; lazily initialized. | 1056 // EncryptedMediaClient attached to this frame; lazily initialized. |
| 1063 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 1057 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
| 1064 | 1058 |
| 1065 // The media permission dispatcher attached to this frame, lazily initialized. | 1059 // The media permission dispatcher attached to this frame, lazily initialized. |
| 1066 MediaPermissionDispatcherImpl* media_permission_dispatcher_; | 1060 MediaPermissionDispatcher* media_permission_dispatcher_; |
| 1067 | 1061 |
| 1068 #if defined(ENABLE_MOJO_MEDIA) | 1062 #if defined(ENABLE_MOJO_MEDIA) |
| 1069 // The media factory attached to this frame, lazily initialized. | 1063 // The media factory attached to this frame, lazily initialized. |
| 1070 media::interfaces::ServiceFactoryPtr media_service_factory_; | 1064 media::interfaces::ServiceFactoryPtr media_service_factory_; |
| 1071 #endif | 1065 #endif |
| 1072 | 1066 |
| 1073 // MidiClient attached to this frame; lazily initialized. | 1067 // MidiClient attached to this frame; lazily initialized. |
| 1074 MidiDispatcher* midi_dispatcher_; | 1068 MidiDispatcher* midi_dispatcher_; |
| 1075 | 1069 |
| 1076 #if defined(OS_ANDROID) | 1070 #if defined(OS_ANDROID) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 #endif | 1160 #endif |
| 1167 | 1161 |
| 1168 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1162 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1169 | 1163 |
| 1170 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1164 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1171 }; | 1165 }; |
| 1172 | 1166 |
| 1173 } // namespace content | 1167 } // namespace content |
| 1174 | 1168 |
| 1175 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1169 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |