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

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: added TODO 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 a53eb87dff53353147551ce2de8c67df43d5f13f..e16b9235f32d39b4bde409c462325909cfd8b4d4 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -134,6 +134,7 @@ class NotificationPermissionDispatcher;
class PageState;
class PepperPluginInstanceImpl;
class PermissionDispatcher;
+class PPB_Audio_Impl;
class PresentationDispatcher;
class PushMessagingDispatcher;
class RendererAccessibility;
@@ -677,6 +678,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:
@@ -1272,6 +1279,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
base::WeakPtrFactory<RenderFrameImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698