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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 class NavigationState; | 97 class NavigationState; |
98 class NotificationPermissionDispatcher; | 98 class NotificationPermissionDispatcher; |
99 class PageState; | 99 class PageState; |
100 class PepperPluginInstanceImpl; | 100 class PepperPluginInstanceImpl; |
101 class PermissionDispatcher; | 101 class PermissionDispatcher; |
102 class PresentationDispatcher; | 102 class PresentationDispatcher; |
103 class PushMessagingDispatcher; | 103 class PushMessagingDispatcher; |
104 class RendererAccessibility; | 104 class RendererAccessibility; |
105 class RendererCdmManager; | 105 class RendererCdmManager; |
106 class RendererMediaPlayerManager; | 106 class RendererMediaPlayerManager; |
| 107 class RendererMediaSessionManager; |
107 class RendererPpapiHost; | 108 class RendererPpapiHost; |
108 class RenderFrameObserver; | 109 class RenderFrameObserver; |
109 class RenderViewImpl; | 110 class RenderViewImpl; |
110 class RenderWidget; | 111 class RenderWidget; |
111 class RenderWidgetFullscreenPepper; | 112 class RenderWidgetFullscreenPepper; |
112 class ScreenOrientationDispatcher; | 113 class ScreenOrientationDispatcher; |
113 class UserMediaClientImpl; | 114 class UserMediaClientImpl; |
114 struct CommonNavigationParams; | 115 struct CommonNavigationParams; |
115 struct CustomContextMenuContext; | 116 struct CustomContextMenuContext; |
116 struct FrameReplicationState; | 117 struct FrameReplicationState; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 blink::WebLocalFrame*, | 359 blink::WebLocalFrame*, |
359 const blink::WebPluginParams&) override; | 360 const blink::WebPluginParams&) override; |
360 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 361 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
361 const blink::WebPluginParams& params); | 362 const blink::WebPluginParams& params); |
362 virtual blink::WebMediaPlayer* createMediaPlayer( | 363 virtual blink::WebMediaPlayer* createMediaPlayer( |
363 blink::WebLocalFrame* frame, | 364 blink::WebLocalFrame* frame, |
364 const blink::WebURL& url, | 365 const blink::WebURL& url, |
365 blink::WebMediaPlayerClient* client, | 366 blink::WebMediaPlayerClient* client, |
366 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 367 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
367 blink::WebContentDecryptionModule* initial_cdm); | 368 blink::WebContentDecryptionModule* initial_cdm); |
| 369 virtual blink::WebMediaSession* createMediaSession( |
| 370 blink::WebLocalFrame* frame); |
368 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( | 371 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( |
369 blink::WebLocalFrame* frame, | 372 blink::WebLocalFrame* frame, |
370 blink::WebApplicationCacheHostClient* client); | 373 blink::WebApplicationCacheHostClient* client); |
371 virtual blink::WebWorkerContentSettingsClientProxy* | 374 virtual blink::WebWorkerContentSettingsClientProxy* |
372 createWorkerContentSettingsClientProxy(blink::WebLocalFrame* frame); | 375 createWorkerContentSettingsClientProxy(blink::WebLocalFrame* frame); |
373 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( | 376 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( |
374 const blink::WebPopupMenuInfo& popup_menu_info, | 377 const blink::WebPopupMenuInfo& popup_menu_info, |
375 blink::WebExternalPopupMenuClient* popup_menu_client); | 378 blink::WebExternalPopupMenuClient* popup_menu_client); |
376 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); | 379 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); |
377 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( | 380 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 NavigationState* CreateNavigationStateFromPending(); | 809 NavigationState* CreateNavigationStateFromPending(); |
807 | 810 |
808 #if defined(OS_ANDROID) | 811 #if defined(OS_ANDROID) |
809 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( | 812 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( |
810 blink::WebMediaPlayerClient* client, | 813 blink::WebMediaPlayerClient* client, |
811 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 814 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
812 media::MediaPermission* media_permission, | 815 media::MediaPermission* media_permission, |
813 blink::WebContentDecryptionModule* initial_cdm); | 816 blink::WebContentDecryptionModule* initial_cdm); |
814 | 817 |
815 RendererMediaPlayerManager* GetMediaPlayerManager(); | 818 RendererMediaPlayerManager* GetMediaPlayerManager(); |
| 819 |
| 820 blink::WebMediaSession* CreateAndroidWebMediaSession(); |
| 821 |
| 822 RendererMediaSessionManager* GetMediaSessionManager(); |
816 #endif | 823 #endif |
817 | 824 |
818 bool AreSecureCodecsSupported(); | 825 bool AreSecureCodecsSupported(); |
819 | 826 |
820 media::MediaPermission* GetMediaPermission(); | 827 media::MediaPermission* GetMediaPermission(); |
821 | 828 |
822 #if defined(ENABLE_MOJO_MEDIA) | 829 #if defined(ENABLE_MOJO_MEDIA) |
823 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 830 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
824 | 831 |
825 // Called when a connection error happened on |media_service_factory_|. | 832 // Called when a connection error happened on |media_service_factory_|. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 #endif | 948 #endif |
942 | 949 |
943 // MidiClient attached to this frame; lazily initialized. | 950 // MidiClient attached to this frame; lazily initialized. |
944 MidiDispatcher* midi_dispatcher_; | 951 MidiDispatcher* midi_dispatcher_; |
945 | 952 |
946 #if defined(OS_ANDROID) | 953 #if defined(OS_ANDROID) |
947 // Manages all media players in this render frame for communicating with the | 954 // Manages all media players in this render frame for communicating with the |
948 // real media player in the browser process. It's okay to use a raw pointer | 955 // real media player in the browser process. It's okay to use a raw pointer |
949 // since it's a RenderFrameObserver. | 956 // since it's a RenderFrameObserver. |
950 RendererMediaPlayerManager* media_player_manager_; | 957 RendererMediaPlayerManager* media_player_manager_; |
| 958 |
| 959 // Manages all media sessions in this render frame for communicating with the |
| 960 // media sessions in the browser process. It's okay to use a raw pointer |
| 961 // since it's a RenderFrameObserver. |
| 962 RendererMediaSessionManager* media_session_manager_; |
951 #endif | 963 #endif |
952 | 964 |
953 #if defined(ENABLE_BROWSER_CDMS) | 965 #if defined(ENABLE_BROWSER_CDMS) |
954 // Manage all CDMs in this render frame for communicating with the real CDM in | 966 // Manage all CDMs in this render frame for communicating with the real CDM in |
955 // the browser process. It's okay to use a raw pointer since it's a | 967 // the browser process. It's okay to use a raw pointer since it's a |
956 // RenderFrameObserver. | 968 // RenderFrameObserver. |
957 RendererCdmManager* cdm_manager_; | 969 RendererCdmManager* cdm_manager_; |
958 #endif | 970 #endif |
959 | 971 |
960 // The CDM factory attached to this frame, lazily initialized. | 972 // The CDM factory attached to this frame, lazily initialized. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 #endif | 1026 #endif |
1015 | 1027 |
1016 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1028 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1017 | 1029 |
1018 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1030 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1019 }; | 1031 }; |
1020 | 1032 |
1021 } // namespace content | 1033 } // namespace content |
1022 | 1034 |
1023 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1035 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |