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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1464183002: media: Simplify MediaPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 11 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
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 72fd2a752d26b9e212f3d0b2f32adeeb54f096c7..c1b178cfb82b72fe404604ce857639b8a37ef0a2 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -117,7 +117,7 @@ class GeolocationDispatcher;
class ManifestManager;
class MediaStreamDispatcher;
class MediaStreamRendererFactory;
-class MediaPermissionDispatcherImpl;
+class MediaPermissionDispatcher;
class MidiDispatcher;
class NavigationState;
class NotificationPermissionDispatcher;
@@ -633,11 +633,7 @@ class CONTENT_EXPORT RenderFrameImpl
void SetPendingNavigationParams(
scoped_ptr<NavigationParams> navigation_params);
- // Expose MediaPermission to the non-UI threads. Any calls to this will be
- // redirected to |media_permission_dispatcher_| on UI thread and have the
- // callback called on |caller_task_runner|.
- scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy(
- scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner);
+ media::MediaPermission* GetMediaPermission();
// Sends the current frame's navigation state to the browser.
void SendUpdateState();
@@ -923,8 +919,6 @@ class CONTENT_EXPORT RenderFrameImpl
bool AreSecureCodecsSupported();
- media::MediaPermission* GetMediaPermission();
-
#if defined(ENABLE_MOJO_MEDIA)
media::interfaces::ServiceFactory* GetMediaServiceFactory();
@@ -1063,7 +1057,7 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
// The media permission dispatcher attached to this frame, lazily initialized.
- MediaPermissionDispatcherImpl* media_permission_dispatcher_;
+ MediaPermissionDispatcher* media_permission_dispatcher_;
#if defined(ENABLE_MOJO_MEDIA)
// The media factory attached to this frame, lazily initialized.

Powered by Google App Engine
This is Rietveld 408576698