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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 class ChildFrameCompositingHelper; | 99 class ChildFrameCompositingHelper; |
100 class CompositorDependencies; | 100 class CompositorDependencies; |
101 class DevToolsAgent; | 101 class DevToolsAgent; |
102 class DocumentState; | 102 class DocumentState; |
103 class ExternalPopupMenu; | 103 class ExternalPopupMenu; |
104 class GeolocationDispatcher; | 104 class GeolocationDispatcher; |
105 class ManifestManager; | 105 class ManifestManager; |
106 class MediaStreamDispatcher; | 106 class MediaStreamDispatcher; |
107 class MediaStreamRendererFactory; | 107 class MediaStreamRendererFactory; |
108 class MediaPermissionDispatcherImpl; | 108 class MediaPermissionDispatcher; |
109 class MidiDispatcher; | 109 class MidiDispatcher; |
110 class NavigationState; | 110 class NavigationState; |
111 class NotificationPermissionDispatcher; | 111 class NotificationPermissionDispatcher; |
112 class PageState; | 112 class PageState; |
113 class PepperPluginInstanceImpl; | 113 class PepperPluginInstanceImpl; |
114 class PermissionDispatcher; | 114 class PermissionDispatcher; |
115 class PresentationDispatcher; | 115 class PresentationDispatcher; |
116 class PushMessagingDispatcher; | 116 class PushMessagingDispatcher; |
117 class RendererAccessibility; | 117 class RendererAccessibility; |
118 class RendererCdmManager; | 118 class RendererCdmManager; |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 // TODO(nasko): Remove this method once swapped out state is no longer used. | 603 // TODO(nasko): Remove this method once swapped out state is no longer used. |
604 void NavigateToSwappedOutURL(); | 604 void NavigateToSwappedOutURL(); |
605 | 605 |
606 ManifestManager* manifest_manager(); | 606 ManifestManager* manifest_manager(); |
607 | 607 |
608 // TODO(creis): Remove when the only caller, the HistoryController, is no | 608 // TODO(creis): Remove when the only caller, the HistoryController, is no |
609 // more. | 609 // more. |
610 void SetPendingNavigationParams( | 610 void SetPendingNavigationParams( |
611 scoped_ptr<NavigationParams> navigation_params); | 611 scoped_ptr<NavigationParams> navigation_params); |
612 | 612 |
613 // Expose MediaPermission to the non-UI threads. Any calls to this will be | 613 media::MediaPermission* GetMediaPermission(); |
614 // redirected to |media_permission_dispatcher_| on UI thread and have the | |
615 // callback called on |caller_task_runner|. | |
616 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( | |
617 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); | |
618 | 614 |
619 protected: | 615 protected: |
620 explicit RenderFrameImpl(const CreateParams& params); | 616 explicit RenderFrameImpl(const CreateParams& params); |
621 | 617 |
622 private: | 618 private: |
623 friend class RenderFrameImplTest; | 619 friend class RenderFrameImplTest; |
624 friend class RenderFrameObserver; | 620 friend class RenderFrameObserver; |
625 friend class RendererAccessibilityTest; | 621 friend class RendererAccessibilityTest; |
626 friend class TestRenderFrame; | 622 friend class TestRenderFrame; |
627 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 623 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( | 869 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( |
874 blink::WebMediaPlayerClient* client, | 870 blink::WebMediaPlayerClient* client, |
875 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 871 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
876 const media::WebMediaPlayerParams& params); | 872 const media::WebMediaPlayerParams& params); |
877 | 873 |
878 RendererMediaPlayerManager* GetMediaPlayerManager(); | 874 RendererMediaPlayerManager* GetMediaPlayerManager(); |
879 #endif | 875 #endif |
880 | 876 |
881 bool AreSecureCodecsSupported(); | 877 bool AreSecureCodecsSupported(); |
882 | 878 |
883 media::MediaPermission* GetMediaPermission(); | |
884 | |
885 #if defined(ENABLE_MOJO_MEDIA) | 879 #if defined(ENABLE_MOJO_MEDIA) |
886 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 880 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
887 | 881 |
888 // Called when a connection error happened on |media_service_factory_|. | 882 // Called when a connection error happened on |media_service_factory_|. |
889 void OnMediaServiceFactoryConnectionError(); | 883 void OnMediaServiceFactoryConnectionError(); |
890 #endif | 884 #endif |
891 | 885 |
892 media::CdmFactory* GetCdmFactory(); | 886 media::CdmFactory* GetCdmFactory(); |
893 | 887 |
894 void RegisterMojoServices(); | 888 void RegisterMojoServices(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 // Dispatches permission requests for Web Notifications. | 989 // Dispatches permission requests for Web Notifications. |
996 NotificationPermissionDispatcher* notification_permission_dispatcher_; | 990 NotificationPermissionDispatcher* notification_permission_dispatcher_; |
997 | 991 |
998 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 992 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
999 UserMediaClientImpl* web_user_media_client_; | 993 UserMediaClientImpl* web_user_media_client_; |
1000 | 994 |
1001 // EncryptedMediaClient attached to this frame; lazily initialized. | 995 // EncryptedMediaClient attached to this frame; lazily initialized. |
1002 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 996 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
1003 | 997 |
1004 // The media permission dispatcher attached to this frame, lazily initialized. | 998 // The media permission dispatcher attached to this frame, lazily initialized. |
1005 MediaPermissionDispatcherImpl* media_permission_dispatcher_; | 999 MediaPermissionDispatcher* media_permission_dispatcher_; |
1006 | 1000 |
1007 #if defined(ENABLE_MOJO_MEDIA) | 1001 #if defined(ENABLE_MOJO_MEDIA) |
1008 // The media factory attached to this frame, lazily initialized. | 1002 // The media factory attached to this frame, lazily initialized. |
1009 media::interfaces::ServiceFactoryPtr media_service_factory_; | 1003 media::interfaces::ServiceFactoryPtr media_service_factory_; |
1010 #endif | 1004 #endif |
1011 | 1005 |
1012 // MidiClient attached to this frame; lazily initialized. | 1006 // MidiClient attached to this frame; lazily initialized. |
1013 MidiDispatcher* midi_dispatcher_; | 1007 MidiDispatcher* midi_dispatcher_; |
1014 | 1008 |
1015 #if defined(OS_ANDROID) | 1009 #if defined(OS_ANDROID) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 #endif | 1095 #endif |
1102 | 1096 |
1103 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1097 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1104 | 1098 |
1105 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1099 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1106 }; | 1100 }; |
1107 | 1101 |
1108 } // namespace content | 1102 } // namespace content |
1109 | 1103 |
1110 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1104 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |