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

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

Issue 2367393002: Migrating MediaSession messages to mojo (Closed)
Patch Set: fixed layout tests 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: 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
deleted file mode 100644
index 126718e9a26f28b3810491b6535d3cdf82b420a5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebMediaSession_h
-#define WebMediaSession_h
-
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/modules/mediasession/WebMediaSessionError.h"
-
-namespace blink {
-
-using WebMediaSessionActivateCallback =
- WebCallbacks<void, const WebMediaSessionError&>;
-using WebMediaSessionDeactivateCallback = WebCallbacks<void, void>;
-
-struct WebMediaMetadata;
-
-class WebMediaSession {
- public:
- enum {
- // The media session for media elements that don't have an
- // explicit user created media session set.
- DefaultID = 0
- };
-
- 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
- // can be a nullptr in which case the assouciated metadata should be reset.
- // The pointer is not owned by the WebMediaSession implementation.
- virtual void setMetadata(const WebMediaMetadata*) = 0;
-};
-
-} // namespace blink
-
-#endif // WebMediaSession_h

Powered by Google App Engine
This is Rietveld 408576698