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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2065513004: Expose flash playback status and volume control to content renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_focus_manager
Patch Set: moved start/stop/created/deleted to the follow-up CL Created 4 years, 6 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 b70731504eaf840dd62172749dc084652b0fdf93..7a1d4c1fb9bbcc335d74218e00efc595735f2eb4 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -136,6 +136,7 @@ class NotificationPermissionDispatcher;
class PageState;
class PepperPluginInstanceImpl;
class PermissionDispatcher;
+class PPB_Audio_Impl;
class PresentationDispatcher;
class PushMessagingDispatcher;
class RendererAccessibility;
@@ -683,6 +684,12 @@ class CONTENT_EXPORT RenderFrameImpl
// Notification that the given plugin is focused or unfocused.
void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
+
+ void PepperStartsPlayback(PepperPluginInstanceImpl* instance,
+ PPB_Audio_Impl* audio_instance);
+ void PepperStopsPlayback(PepperPluginInstanceImpl* instance,
+ PPB_Audio_Impl* audio_instance);
+ void OnSetPepperVolume(int32_t pp_instance, double volume);
#endif // ENABLE_PLUGINS
protected:
@@ -1281,6 +1288,8 @@ class CONTENT_EXPORT RenderFrameImpl
// |pepper_last_mouse_event_target_| is not owned by this class. We depend on
// the RenderFrameImpl to NULL it out when it destructs.
PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
+
+ std::map<int32_t, std::set<PPB_Audio_Impl*>> pepper_audios_map_;
#endif
mojo::Binding<mojom::Frame> frame_binding_;

Powered by Google App Engine
This is Rietveld 408576698