Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1470233002: media: Generalize MediaPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 media::interfaces::ServiceFactory* GetMediaServiceFactory(); 952 media::interfaces::ServiceFactory* GetMediaServiceFactory();
953 953
954 // Called when a connection error happened on |media_service_factory_|. 954 // Called when a connection error happened on |media_service_factory_|.
955 void OnMediaServiceFactoryConnectionError(); 955 void OnMediaServiceFactoryConnectionError();
956 #endif 956 #endif
957 957
958 media::CdmFactory* GetCdmFactory(); 958 media::CdmFactory* GetCdmFactory();
959 959
960 void RegisterMojoServices(); 960 void RegisterMojoServices();
961 961
962 // Connect to an interface provided by the service registry.
963 template <typename Interface>
964 void ConnectToService(mojo::InterfaceRequest<Interface> request);
965
962 // Connects to a Mojo application and returns a proxy to its exposed 966 // Connects to a Mojo application and returns a proxy to its exposed
963 // ServiceProvider. 967 // ServiceProvider.
964 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url); 968 mojo::ServiceProviderPtr ConnectToApplication(const GURL& url);
965 969
966 // Returns the media delegate for WebMediaPlayer usage. If 970 // Returns the media delegate for WebMediaPlayer usage. If
967 // |media_player_delegate_| is NULL, one is created. 971 // |media_player_delegate_| is NULL, one is created.
968 media::RendererWebMediaPlayerDelegate* GetWebMediaPlayerDelegate(); 972 media::RendererWebMediaPlayerDelegate* GetWebMediaPlayerDelegate();
969 973
970 // Called to get the WebPlugin to handle find requests in the document. 974 // Called to get the WebPlugin to handle find requests in the document.
971 // Returns nullptr if there is no such WebPlugin. 975 // Returns nullptr if there is no such WebPlugin.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 1096
1093 // Dispatches permission requests for Web Notifications. 1097 // Dispatches permission requests for Web Notifications.
1094 NotificationPermissionDispatcher* notification_permission_dispatcher_; 1098 NotificationPermissionDispatcher* notification_permission_dispatcher_;
1095 1099
1096 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 1100 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
1097 UserMediaClientImpl* web_user_media_client_; 1101 UserMediaClientImpl* web_user_media_client_;
1098 1102
1099 // EncryptedMediaClient attached to this frame; lazily initialized. 1103 // EncryptedMediaClient attached to this frame; lazily initialized.
1100 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; 1104 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
1101 1105
1102 // The media permission dispatcher attached to this frame, lazily initialized. 1106 // The media permission dispatcher attached to this frame.
1103 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 1107 scoped_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
1104 MediaPermissionDispatcher* media_permission_dispatcher_;
1105 1108
1106 #if defined(ENABLE_MOJO_MEDIA) 1109 #if defined(ENABLE_MOJO_MEDIA)
1107 // The media factory attached to this frame, lazily initialized. 1110 // The media factory attached to this frame, lazily initialized.
1108 media::interfaces::ServiceFactoryPtr media_service_factory_; 1111 media::interfaces::ServiceFactoryPtr media_service_factory_;
1109 #endif 1112 #endif
1110 1113
1111 // MidiClient attached to this frame; lazily initialized. 1114 // MidiClient attached to this frame; lazily initialized.
1112 MidiDispatcher* midi_dispatcher_; 1115 MidiDispatcher* midi_dispatcher_;
1113 1116
1114 #if defined(OS_ANDROID) 1117 #if defined(OS_ANDROID)
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 #endif 1207 #endif
1205 1208
1206 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1209 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1207 1210
1208 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1211 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1209 }; 1212 };
1210 1213
1211 } // namespace content 1214 } // namespace content
1212 1215
1213 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1216 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_permission_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698