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 2b04a84c62e30233fca4bd95a103410102f11282..6dbe3abb1d2586a2a7ec358a9aa74cc1b4f7a893 100644 |
--- a/content/browser/web_contents/web_contents_impl.h |
+++ b/content/browser/web_contents/web_contents_impl.h |
@@ -431,12 +431,25 @@ class CONTENT_EXPORT WebContentsImpl |
bool GetAllowOtherViews() override; |
#endif |
+ // TODO(zqzhang): Decouple MediaSession messages from WebContents to avoid |
+ // plumbing. See https://crbug.com/658678 |
+ // |
// This method is called when the MediaSession state has changed, and will |
// notify the WebContents observers. |
void OnMediaSessionStateChanged(); |
// This method is called when the MediaSession metadata has changed, and will |
// notify the WebContents observers. |
void OnMediaSessionMetadataChanged(); |
+ // This method is called when the MediaSession has enabled an action, and will |
+ // notify the WebContentsObservers. |
+ void OnMediaSessionEnabledAction(blink::mojom::MediaSessionAction action); |
+ // This method is called when the MediaSession has disabled an action, and |
+ // will |
+ // notify the WebContentsObservers. |
+ void OnMediaSessionDisabledAction(blink::mojom::MediaSessionAction action); |
+ // Tell the media session a user action has performed. |
+ void DidReceiveMediaSessionAction( |
+ blink::mojom::MediaSessionAction action); |
// Implementation of PageNavigator. |
WebContents* OpenURL(const OpenURLParams& params) override; |