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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 25ffc4256449c05f725226e27b6072678f7727ac..798d75058c0e7eceab62a222d41b04da70e433d4 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -959,6 +959,10 @@ class CONTENT_EXPORT RenderFrameImpl
void RegisterMojoServices();
+ // Connect to an interface provided by the service registry.
+ template <typename Interface>
+ void ConnectToService(mojo::InterfaceRequest<Interface> request);
+
// Connects to a Mojo application and returns a proxy to its exposed
// ServiceProvider.
mojo::ServiceProviderPtr ConnectToApplication(const GURL& url);
@@ -1099,9 +1103,8 @@ class CONTENT_EXPORT RenderFrameImpl
// EncryptedMediaClient attached to this frame; lazily initialized.
scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
- // The media permission dispatcher attached to this frame, lazily initialized.
- // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
- MediaPermissionDispatcher* media_permission_dispatcher_;
+ // The media permission dispatcher attached to this frame.
+ scoped_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
#if defined(ENABLE_MOJO_MEDIA)
// The media factory attached to this frame, lazily initialized.
« 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