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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "ui/gfx/range/range.h" | 46 #include "ui/gfx/range/range.h" |
47 | 47 |
48 #if defined(ENABLE_PLUGINS) | 48 #if defined(ENABLE_PLUGINS) |
49 #include "content/renderer/pepper/plugin_power_saver_helper.h" | 49 #include "content/renderer/pepper/plugin_power_saver_helper.h" |
50 #endif | 50 #endif |
51 | 51 |
52 #if defined(OS_ANDROID) | 52 #if defined(OS_ANDROID) |
53 #include "content/renderer/media/android/renderer_media_player_manager.h" | 53 #include "content/renderer/media/android/renderer_media_player_manager.h" |
54 #endif | 54 #endif |
55 | 55 |
56 #if defined(ENABLE_MOJO_MEDIA) | |
57 #include "media/mojo/interfaces/service_factory.mojom.h" | |
58 #endif | |
59 | |
60 class GURL; | 56 class GURL; |
61 class TransportDIB; | 57 class TransportDIB; |
62 struct FrameMsg_NewFrame_WidgetParams; | 58 struct FrameMsg_NewFrame_WidgetParams; |
63 struct FrameMsg_PostMessage_Params; | 59 struct FrameMsg_PostMessage_Params; |
64 struct FrameMsg_TextTrackSettings_Params; | 60 struct FrameMsg_TextTrackSettings_Params; |
65 | 61 |
66 namespace blink { | 62 namespace blink { |
67 class WebGeolocationClient; | 63 class WebGeolocationClient; |
68 class WebMouseEvent; | 64 class WebMouseEvent; |
69 class WebContentDecryptionModule; | 65 class WebContentDecryptionModule; |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 RendererMediaPlayerManager* GetMediaPlayerManager(); | 913 RendererMediaPlayerManager* GetMediaPlayerManager(); |
918 | 914 |
919 RendererMediaSessionManager* GetMediaSessionManager(); | 915 RendererMediaSessionManager* GetMediaSessionManager(); |
920 #endif | 916 #endif |
921 | 917 |
922 bool AreSecureCodecsSupported(); | 918 bool AreSecureCodecsSupported(); |
923 | 919 |
924 media::MediaPermission* GetMediaPermission(); | 920 media::MediaPermission* GetMediaPermission(); |
925 | 921 |
926 #if defined(ENABLE_MOJO_MEDIA) | 922 #if defined(ENABLE_MOJO_MEDIA) |
927 media::interfaces::ServiceFactory* GetMediaServiceFactory(); | 923 mojo::ServiceProvider* GetMediaServiceProvider(); |
928 | |
929 // Called when a connection error happened on |media_service_factory_|. | |
930 void OnMediaServiceFactoryConnectionError(); | |
931 #endif | 924 #endif |
932 | 925 |
933 media::CdmFactory* GetCdmFactory(); | 926 media::CdmFactory* GetCdmFactory(); |
934 | 927 |
935 void RegisterMojoServices(); | 928 void RegisterMojoServices(); |
936 | 929 |
937 // Connects to a Mojo application and returns a proxy to its exposed | 930 // Connects to a Mojo application and returns a proxy to its exposed |
938 // ServiceProvider. | 931 // ServiceProvider. |
939 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); | 932 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); |
940 | 933 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 UserMediaClientImpl* web_user_media_client_; | 1051 UserMediaClientImpl* web_user_media_client_; |
1059 | 1052 |
1060 // EncryptedMediaClient attached to this frame; lazily initialized. | 1053 // EncryptedMediaClient attached to this frame; lazily initialized. |
1061 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; | 1054 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; |
1062 | 1055 |
1063 // The media permission dispatcher attached to this frame, lazily initialized. | 1056 // The media permission dispatcher attached to this frame, lazily initialized. |
1064 MediaPermissionDispatcherImpl* media_permission_dispatcher_; | 1057 MediaPermissionDispatcherImpl* media_permission_dispatcher_; |
1065 | 1058 |
1066 #if defined(ENABLE_MOJO_MEDIA) | 1059 #if defined(ENABLE_MOJO_MEDIA) |
1067 // The media factory attached to this frame, lazily initialized. | 1060 // The media factory attached to this frame, lazily initialized. |
1068 media::interfaces::ServiceFactoryPtr media_service_factory_; | 1061 mojo::ServiceProviderPtr media_service_provider_; |
1069 #endif | 1062 #endif |
1070 | 1063 |
1071 // MidiClient attached to this frame; lazily initialized. | 1064 // MidiClient attached to this frame; lazily initialized. |
1072 MidiDispatcher* midi_dispatcher_; | 1065 MidiDispatcher* midi_dispatcher_; |
1073 | 1066 |
1074 #if defined(OS_ANDROID) | 1067 #if defined(OS_ANDROID) |
1075 // Manages all media players and sessions in this render frame for | 1068 // Manages all media players and sessions in this render frame for |
1076 // communicating with the real media player and sessions in the | 1069 // communicating with the real media player and sessions in the |
1077 // browser process. It's okay to use raw pointers since they're both | 1070 // browser process. It's okay to use raw pointers since they're both |
1078 // RenderFrameObservers. | 1071 // RenderFrameObservers. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 #endif | 1157 #endif |
1165 | 1158 |
1166 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1159 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1167 | 1160 |
1168 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1161 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1169 }; | 1162 }; |
1170 | 1163 |
1171 } // namespace content | 1164 } // namespace content |
1172 | 1165 |
1173 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1166 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |