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

Unified Diff: third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h

Issue 1441883003: Hook up RendererMediaSessionManager with browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 | « ipc/ipc_message_start.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ipc/ipc_message_start.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698