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

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: Created 5 years, 1 month 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
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index c3a6009c86359e7a2779a32b774b74494b6fd7d6..b247b78ea51385c04f60a7bcebc91a8bef7c8c10 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -887,6 +887,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);
@@ -995,8 +999,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.
- MediaPermissionDispatcher* media_permission_dispatcher_;
+ // The media permission dispatcher attached to this frame.
+ scoped_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
xhwang 2015/11/24 08:28:05 We don't care about any Frame events. So using a s
nasko 2015/11/25 15:04:27 Makes sense to me. I now wonder why it was an obse
#if defined(ENABLE_MOJO_MEDIA)
// The media factory attached to this frame, lazily initialized.

Powered by Google App Engine
This is Rietveld 408576698