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

Unified Diff: content/public/browser/web_contents_observer.h

Issue 2411723002: Split MediaSessionStateChanged() and MediaSessionMetadataChanged() (Closed)
Patch Set: rebased Created 4 years, 2 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/WebContentsObserver.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index ea27d243d5eff27566bd7d386383b27c66e0fa9d..704c509ca61dde486397478d641fd8c438bfc1cc 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -469,9 +469,12 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
virtual void MediaStoppedPlaying(const MediaPlayerId& id) {}
// Invoked when media session has changed its state.
- virtual void MediaSessionStateChanged(
- bool is_controllable,
- bool is_suspended,
+ virtual void MediaSessionStateChanged(bool is_controllable,
+ bool is_suspended) {}
+
+ // Invoked when media session metadata has changed. When |metadata| is
+ // nullopt, it means the metadata is being unset.
+ virtual void MediaSessionMetadataChanged(
const base::Optional<MediaMetadata>& metadata) {}
// Invoked when the renderer process changes the page scale factor.
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/WebContentsObserver.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698