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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 blink::WebContentDecryptionModule* initial_cdm); | 814 blink::WebContentDecryptionModule* initial_cdm); |
811 | 815 |
812 RendererMediaPlayerManager* GetMediaPlayerManager(); | 816 RendererMediaPlayerManager* GetMediaPlayerManager(); |
813 #endif | 817 #endif |
814 | 818 |
815 bool AreSecureCodecsSupported(); | 819 bool AreSecureCodecsSupported(); |
816 | 820 |
817 media::MediaPermission* GetMediaPermission(); | 821 media::MediaPermission* GetMediaPermission(); |
818 | 822 |
819 #if defined(ENABLE_MOJO_MEDIA) | 823 #if defined(ENABLE_MOJO_MEDIA) |
820 mojo::ServiceProvider* GetMediaServiceProvider(); | 824 media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
821 | 825 |
822 // Called when a connection error happened on |media_service_provider_|. | 826 // Called when a connection error happened on |media_service_factory_|. |
823 void OnMediaServiceProviderConnectionError(); | 827 void OnMediaServiceFactoryConnectionError(); |
824 #endif | 828 #endif |
825 | 829 |
826 media::CdmFactory* GetCdmFactory(); | 830 media::CdmFactory* GetCdmFactory(); |
827 | 831 |
828 void RegisterMojoServices(); | 832 void RegisterMojoServices(); |
829 | 833 |
830 // Stores the WebLocalFrame we are associated with. This is null from the | 834 // Stores the WebLocalFrame we are associated with. This is null from the |
831 // constructor until SetWebFrame is called, and it is null after | 835 // constructor until SetWebFrame is called, and it is null after |
832 // frameDetached is called until destruction (which is asynchronous in the | 836 // frameDetached is called until destruction (which is asynchronous in the |
833 // case of the main frame, but not subframes). | 837 // case of the main frame, but not subframes). |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. | 930 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
927 UserMediaClientImpl* web_user_media_client_; | 931 UserMediaClientImpl* web_user_media_client_; |
928 | 932 |
929 // EncryptedMediaClient attached to this frame; lazily initialized. | 933 // EncryptedMediaClient attached to this frame; lazily initialized. |
930 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 934 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
931 | 935 |
932 // The media permission dispatcher attached to this frame, lazily initialized. | 936 // The media permission dispatcher attached to this frame, lazily initialized. |
933 MediaPermissionDispatcher* media_permission_dispatcher_; | 937 MediaPermissionDispatcher* media_permission_dispatcher_; |
934 | 938 |
935 #if defined(ENABLE_MOJO_MEDIA) | 939 #if defined(ENABLE_MOJO_MEDIA) |
936 // The media service provider attached to this frame, lazily initialized. | 940 // The media factory attached to this frame, lazily initialized. |
937 mojo::ServiceProviderPtr media_service_provider_; | 941 media::interfaces::ServiceFactoryPtr media_service_factory_; |
938 #endif | 942 #endif |
939 | 943 |
940 // MidiClient attached to this frame; lazily initialized. | 944 // MidiClient attached to this frame; lazily initialized. |
941 MidiDispatcher* midi_dispatcher_; | 945 MidiDispatcher* midi_dispatcher_; |
942 | 946 |
943 #if defined(OS_ANDROID) | 947 #if defined(OS_ANDROID) |
944 // Manages all media players in this render frame for communicating with the | 948 // Manages all media players in this render frame for communicating with the |
945 // real media player in the browser process. It's okay to use a raw pointer | 949 // real media player in the browser process. It's okay to use a raw pointer |
946 // since it's a RenderFrameObserver. | 950 // since it's a RenderFrameObserver. |
947 RendererMediaPlayerManager* media_player_manager_; | 951 RendererMediaPlayerManager* media_player_manager_; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 #endif | 1015 #endif |
1012 | 1016 |
1013 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1017 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1014 | 1018 |
1015 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1019 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1016 }; | 1020 }; |
1017 | 1021 |
1018 } // namespace content | 1022 } // namespace content |
1019 | 1023 |
1020 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1024 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |