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

Unified Diff: content/renderer/media/android/webmediasession_android.cc

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert throwing in the constructor; would needlessly complicate existing tests Created 5 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/renderer/media/android/webmediasession_android.cc
diff --git a/content/renderer/media/android/webmediasession_android.cc b/content/renderer/media/android/webmediasession_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..11a1e0922a76e3c0d9733752a66bf100ad98b7ac
--- /dev/null
+++ b/content/renderer/media/android/webmediasession_android.cc
@@ -0,0 +1,25 @@
+// 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.
+
+#include "content/renderer/media/android/webmediasession_android.h"
+
+namespace content {
+
+void WebMediaSessionAndroid::activate(
+ blink::WebMediaSessionCommandCallback* callback) {
+ NOTIMPLEMENTED();
+
+ callback->onError(blink::WebMediaSessionError::ErrorTypeActivate);
+ delete callback;
+}
+
+void WebMediaSessionAndroid::deactivate(
+ blink::WebMediaSessionCommandCallback* callback) {
+ NOTIMPLEMENTED();
+
+ callback->onSuccess();
+ delete callback;
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698