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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2060933002: Let Flash join and be controlled by media session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Patch Set: addressed dcheng's comments 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/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 4cc0c5bc1e2e1d7013ff2b7530738a287958566f..ad392c731c1dd6f47bbd0f0bee194edcca4133b8 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -92,6 +92,10 @@ struct ResourceRequestDetails;
class WebContentsAndroid;
#endif
+#if defined(ENABLE_PLUGINS)
+class PepperPlaybackObserver;
+#endif
+
// Factory function for the implementations that content knows about. Takes
// ownership of |delegate|.
WebContentsView* CreateWebContentsView(
@@ -944,11 +948,13 @@ class CONTENT_EXPORT WebContentsImpl
const base::ListValue& args);
void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals);
#if defined(ENABLE_PLUGINS)
- void OnPepperInstanceCreated();
- void OnPepperInstanceDeleted();
+ void OnPepperInstanceCreated(int32_t pp_instance);
+ void OnPepperInstanceDeleted(int32_t pp_instance);
void OnPepperPluginHung(int plugin_child_id,
const base::FilePath& path,
bool is_hung);
+ void OnPepperStartsPlayback(int32_t pp_instance);
+ void OnPepperStopsPlayback(int32_t pp_instance);
void OnPluginCrashed(const base::FilePath& plugin_path,
base::ProcessId plugin_pid);
void OnRequestPpapiBrokerPermission(int routing_id,
@@ -1383,6 +1389,11 @@ class CONTENT_EXPORT WebContentsImpl
// Manages media players, CDMs, and power save blockers for media.
std::unique_ptr<MediaWebContentsObserver> media_web_contents_observer_;
+#if defined(ENABLE_PLUGINS)
+ // Observes pepper playback changes, and notifies MediaSession.
+ std::unique_ptr<PepperPlaybackObserver> pepper_playback_observer_;
+#endif // defined(ENABLE_PLUGINS)
+
std::unique_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
PageImportanceSignals page_importance_signals_;
« no previous file with comments | « content/browser/media/session/pepper_player_delegate.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698