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 24 matching lines...) Expand all Loading... |
35 #include "ui/gfx/range/range.h" | 35 #include "ui/gfx/range/range.h" |
36 | 36 |
37 #if defined(ENABLE_PLUGINS) | 37 #if defined(ENABLE_PLUGINS) |
38 #include "content/renderer/pepper/plugin_power_saver_helper.h" | 38 #include "content/renderer/pepper/plugin_power_saver_helper.h" |
39 #endif | 39 #endif |
40 | 40 |
41 #if defined(OS_ANDROID) | 41 #if defined(OS_ANDROID) |
42 #include "content/renderer/media/android/renderer_media_player_manager.h" | 42 #include "content/renderer/media/android/renderer_media_player_manager.h" |
43 #endif | 43 #endif |
44 | 44 |
| 45 #if defined(ENABLE_MOJO_MEDIA) |
| 46 #include "media/mojo/interfaces/service_factory.mojom.h" |
| 47 #endif |
| 48 |
45 class GURL; | 49 class GURL; |
46 class TransportDIB; | 50 class TransportDIB; |
47 struct FrameMsg_NewFrame_WidgetParams; | 51 struct FrameMsg_NewFrame_WidgetParams; |
48 struct FrameMsg_PostMessage_Params; | 52 struct FrameMsg_PostMessage_Params; |
49 struct FrameMsg_TextTrackSettings_Params; | 53 struct FrameMsg_TextTrackSettings_Params; |
50 | 54 |
51 namespace blink { | 55 namespace blink { |
52 class WebGeolocationClient; | 56 class WebGeolocationClient; |
53 class WebMouseEvent; | 57 class WebMouseEvent; |
54 class WebContentDecryptionModule; | 58 class WebContentDecryptionModule; |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 blink::WebContentDecryptionModule* initial_cdm); | 813 blink::WebContentDecryptionModule* initial_cdm); |
810 | 814 |
811 RendererMediaPlayerManager* GetMediaPlayerManager(); | 815 RendererMediaPlayerManager* GetMediaPlayerManager(); |
812 #endif | 816 #endif |
813 | 817 |
814 bool AreSecureCodecsSupported(); | 818 bool AreSecureCodecsSupported(); |
815 | 819 |
816 media::MediaPermission* GetMediaPermission(); | 820 media::MediaPermission* GetMediaPermission(); |
817 | 821 |
818 #if defined(ENABLE_MOJO_MEDIA) | 822 #if defined(ENABLE_MOJO_MEDIA) |
819 mojo::ServiceProvider* GetMediaServiceProvider(); | 823 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
820 | 824 |
821 // Called when a connection error happened on |media_service_provider_|. | 825 // Called when a connection error happened on |media_service_factory_|. |
822 void OnMediaServiceProviderConnectionError(); | 826 void OnMediaServiceFactoryConnectionError(); |
823 #endif | 827 #endif |
824 | 828 |
825 media::CdmFactory* GetCdmFactory(); | 829 media::CdmFactory* GetCdmFactory(); |
826 | 830 |
827 void RegisterMojoServices(); | 831 void RegisterMojoServices(); |
828 | 832 |
829 // Stores the WebLocalFrame we are associated with. This is null from the | 833 // Stores the WebLocalFrame we are associated with. This is null from the |
830 // constructor until SetWebFrame is called, and it is null after | 834 // constructor until SetWebFrame is called, and it is null after |
831 // frameDetached is called until destruction (which is asynchronous in the | 835 // frameDetached is called until destruction (which is asynchronous in the |
832 // case of the main frame, but not subframes). | 836 // case of the main frame, but not subframes). |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 929 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
926 UserMediaClientImpl* web_user_media_client_; | 930 UserMediaClientImpl* web_user_media_client_; |
927 | 931 |
928 // EncryptedMediaClient attached to this frame; lazily initialized. | 932 // EncryptedMediaClient attached to this frame; lazily initialized. |
929 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 933 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
930 | 934 |
931 // The media permission dispatcher attached to this frame, lazily initialized. | 935 // The media permission dispatcher attached to this frame, lazily initialized. |
932 MediaPermissionDispatcher* media_permission_dispatcher_; | 936 MediaPermissionDispatcher* media_permission_dispatcher_; |
933 | 937 |
934 #if defined(ENABLE_MOJO_MEDIA) | 938 #if defined(ENABLE_MOJO_MEDIA) |
935 // The media service provider attached to this frame, lazily initialized. | 939 // The media factory attached to this frame, lazily initialized. |
936 mojo::ServiceProviderPtr media_service_provider_; | 940 media::interfaces::ServiceFactoryPtr media_service_factory_; |
937 #endif | 941 #endif |
938 | 942 |
939 // MidiClient attached to this frame; lazily initialized. | 943 // MidiClient attached to this frame; lazily initialized. |
940 MidiDispatcher* midi_dispatcher_; | 944 MidiDispatcher* midi_dispatcher_; |
941 | 945 |
942 #if defined(OS_ANDROID) | 946 #if defined(OS_ANDROID) |
943 // Manages all media players in this render frame for communicating with the | 947 // Manages all media players in this render frame for communicating with the |
944 // real media player in the browser process. It's okay to use a raw pointer | 948 // real media player in the browser process. It's okay to use a raw pointer |
945 // since it's a RenderFrameObserver. | 949 // since it's a RenderFrameObserver. |
946 RendererMediaPlayerManager* media_player_manager_; | 950 RendererMediaPlayerManager* media_player_manager_; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 #endif | 1012 #endif |
1009 | 1013 |
1010 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1014 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1011 | 1015 |
1012 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1016 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1013 }; | 1017 }; |
1014 | 1018 |
1015 } // namespace content | 1019 } // namespace content |
1016 | 1020 |
1017 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1021 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |