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

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

Issue 1415923003: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/renderer/media/android/webmediasession_android.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7977493cd4142143cb93b5af345abc36ca291541
--- /dev/null
+++ b/content/renderer/media/android/webmediasession_android.cc
@@ -0,0 +1,27 @@
+// 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 "base/logging.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/renderer/media/android/webmediasession_android.h"
+
+namespace content {
+
+void WebMediaSessionAndroid::activate(
+ blink::WebMediaSessionActivateCallback* raw_callback) {
+ NOTIMPLEMENTED();
+
+ scoped_ptr<blink::WebMediaSessionActivateCallback> callback(raw_callback);
+ callback->onError(blink::WebMediaSessionError::Activate);
+}
+
+void WebMediaSessionAndroid::deactivate(
+ blink::WebMediaSessionDeactivateCallback* raw_callback) {
+ NOTIMPLEMENTED();
+
+ scoped_ptr<blink::WebMediaSessionDeactivateCallback> callback(raw_callback);
+ callback->onSuccess();
+}
+
+} // namespace content
« no previous file with comments | « content/renderer/media/android/webmediasession_android.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698