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

Unified Diff: content/browser/media/session/media_session_service_impl.cc

Issue 2426653002: Adding mojo MediaSessionClient to support media controls (Closed)
Patch Set: rebased and nits 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
Index: content/browser/media/session/media_session_service_impl.cc
diff --git a/content/browser/media/session/media_session_service_impl.cc b/content/browser/media/session/media_session_service_impl.cc
index c7dbf721bc17a8ad660509ce61968e3bcfe07887..3e2ab18ec4e796786141b021d99162e40422a8b7 100644
--- a/content/browser/media/session/media_session_service_impl.cc
+++ b/content/browser/media/session/media_session_service_impl.cc
@@ -27,6 +27,11 @@ void MediaSessionServiceImpl::Create(
impl->Bind(std::move(request));
}
+void MediaSessionServiceImpl::SetClient(
+ blink::mojom::MediaSessionClientPtr client) {
+ client_ = std::move(client);
+}
+
void MediaSessionServiceImpl::SetMetadata(
const base::Optional<content::MediaMetadata>& metadata) {
// When receiving a MediaMetadata, the browser process can't trust that it is
@@ -44,6 +49,18 @@ void MediaSessionServiceImpl::SetMetadata(
MediaSession::Get(contents)->SetMetadata(metadata);
}
+void MediaSessionServiceImpl::EnableAction(
+ blink::mojom::MediaSessionAction action) {
+ // TODO(zqzhang): Plumb this signal to Java. See https://crbug.com/656563
+ NOTIMPLEMENTED();
+}
+
+void MediaSessionServiceImpl::DisableAction(
+ blink::mojom::MediaSessionAction action) {
+ // TODO(zqzhang): Plumb this signal to Java. See https://crbug.com/656563
+ NOTIMPLEMENTED();
+}
+
void MediaSessionServiceImpl::Bind(
blink::mojom::MediaSessionServiceRequest request) {
binding_.reset(new mojo::Binding<blink::mojom::MediaSessionService>(

Powered by Google App Engine
This is Rietveld 408576698