Index: third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h |
diff --git a/third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h b/third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h |
index 8b6aa595b2c94c39f87dd8c9e0eb2b74d8647f54..e0f465956a4fedce39d4a1b8c0eb42b4f76d82f2 100644 |
--- a/third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h |
+++ b/third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h |
@@ -19,7 +19,16 @@ class WebMediaSession { |
public: |
virtual ~WebMediaSession() = default; |
+ // Tries to activate the session by requesting audio focus from |
+ // the system. May fail if audio focus is denied by the |
+ // system. The ownership of the pointer is transferred to the |
+ // WebMediaSession implementation. |
virtual void activate(WebMediaSessionActivateCallback*) = 0; |
+ |
+ // Deactivates the session by abandoning audio focus. Will not |
+ // fail in way visible to the user of the WebMediaSession. The |
+ // ownership of the pointer is transferred to the WebMediaSession |
+ // implementation. |
virtual void deactivate(WebMediaSessionDeactivateCallback*) = 0; |
// Updates the metadata associated with the WebMediaSession. The metadata |