Index: content/renderer/render_frame_impl.h |
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h |
index af0ca0f252b9f1e6aeeb4da2014a3ed6a4886500..b7c09e299dbdbc2fb61cf79204d3182614a6d952 100644 |
--- a/content/renderer/render_frame_impl.h |
+++ b/content/renderer/render_frame_impl.h |
@@ -119,7 +119,7 @@ class GeolocationDispatcher; |
class ManifestManager; |
class MediaStreamDispatcher; |
class MediaStreamRendererFactory; |
-class MediaPermissionDispatcherImpl; |
+class MediaPermissionDispatcher; |
class MidiDispatcher; |
class NavigationState; |
class NotificationPermissionDispatcher; |
@@ -645,11 +645,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(); |
@@ -951,8 +947,6 @@ class CONTENT_EXPORT RenderFrameImpl |
bool AreSecureCodecsSupported(); |
- media::MediaPermission* GetMediaPermission(); |
- |
#if defined(ENABLE_MOJO_MEDIA) |
media::interfaces::ServiceFactory* GetMediaServiceFactory(); |
@@ -1105,7 +1099,8 @@ 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_; |
+ // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. |
+ MediaPermissionDispatcher* media_permission_dispatcher_; |
#if defined(ENABLE_MOJO_MEDIA) |
// The media factory attached to this frame, lazily initialized. |