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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 871663003: media: Add MediaPermission interface and MediaPermissionDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove test code. Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 namespace content { 72 namespace content {
73 73
74 class ChildFrameCompositingHelper; 74 class ChildFrameCompositingHelper;
75 class ExternalPopupMenu; 75 class ExternalPopupMenu;
76 class GeolocationDispatcher; 76 class GeolocationDispatcher;
77 class ManifestManager; 77 class ManifestManager;
78 class MediaStreamDispatcher; 78 class MediaStreamDispatcher;
79 class MediaStreamRendererFactory; 79 class MediaStreamRendererFactory;
80 class MediaPermissionDispatcher;
80 class MidiDispatcher; 81 class MidiDispatcher;
81 class NotificationPermissionDispatcher; 82 class NotificationPermissionDispatcher;
82 class PageState; 83 class PageState;
83 class PepperPluginInstanceImpl; 84 class PepperPluginInstanceImpl;
84 class PushMessagingDispatcher; 85 class PushMessagingDispatcher;
85 class RendererAccessibility; 86 class RendererAccessibility;
86 class RendererCdmManager; 87 class RendererCdmManager;
87 class RendererMediaPlayerManager; 88 class RendererMediaPlayerManager;
88 class RendererPpapiHost; 89 class RendererPpapiHost;
89 class RenderFrameObserver; 90 class RenderFrameObserver;
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 795
795 // Dispatches permission requests for Web Notifications. 796 // Dispatches permission requests for Web Notifications.
796 NotificationPermissionDispatcher* notification_permission_dispatcher_; 797 NotificationPermissionDispatcher* notification_permission_dispatcher_;
797 798
798 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 799 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
799 UserMediaClientImpl* web_user_media_client_; 800 UserMediaClientImpl* web_user_media_client_;
800 801
801 // EncryptedMediaClient attached to this frame; lazily initialized. 802 // EncryptedMediaClient attached to this frame; lazily initialized.
802 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_; 803 scoped_ptr<media::WebEncryptedMediaClientImpl> web_encrypted_media_client_;
803 804
805 // The media permission dispatcher attached to this frame, lazily initialized.
806 MediaPermissionDispatcher* media_permission_dispatcher_;
807
804 // MidiClient attached to this frame; lazily initialized. 808 // MidiClient attached to this frame; lazily initialized.
805 MidiDispatcher* midi_dispatcher_; 809 MidiDispatcher* midi_dispatcher_;
806 810
807 #if defined(OS_ANDROID) 811 #if defined(OS_ANDROID)
808 // Manages all media players in this render frame for communicating with the 812 // Manages all media players in this render frame for communicating with the
809 // real media player in the browser process. It's okay to use a raw pointer 813 // real media player in the browser process. It's okay to use a raw pointer
810 // since it's a RenderFrameObserver. 814 // since it's a RenderFrameObserver.
811 RendererMediaPlayerManager* media_player_manager_; 815 RendererMediaPlayerManager* media_player_manager_;
812 #endif 816 #endif
813 817
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 #endif 857 #endif
854 858
855 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 859 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
856 860
857 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 861 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
858 }; 862 };
859 863
860 } // namespace content 864 } // namespace content
861 865
862 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 866 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698