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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1351443005: Refactor media permission dispatcher class and create proxy class for non-UI threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build break. Created 5 years, 3 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_proxy.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 ef30f2d11bff64a170181158f9e80fc461cf09c5..b66eca8940056b9cb748e98b3aced5dffb92f449 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -99,7 +99,7 @@ class GeolocationDispatcher;
class ManifestManager;
class MediaStreamDispatcher;
class MediaStreamRendererFactory;
-class MediaPermissionDispatcher;
+class MediaPermissionDispatcherImpl;
class MidiDispatcher;
class NavigationState;
class NotificationPermissionDispatcher;
@@ -584,6 +584,12 @@ 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);
+
protected:
explicit RenderFrameImpl(const CreateParams& params);
@@ -954,7 +960,7 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
// The media permission dispatcher attached to this frame, lazily initialized.
- MediaPermissionDispatcher* media_permission_dispatcher_;
+ MediaPermissionDispatcherImpl* 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_proxy.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698