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

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

Issue 1370453002: Introduce WebMediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Expect no platform implementation on !ANDROID Created 5 years, 3 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.h
diff --git a/content/renderer/media/android/webmediasession_android.h b/content/renderer/media/android/webmediasession_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..2220db4ea71af067044f35012692e66029706ba9
--- /dev/null
+++ b/content/renderer/media/android/webmediasession_android.h
@@ -0,0 +1,31 @@
+// 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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIASESSION_ANDROID_H_
+#define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIASESSION_ANDROID_H_
+
+#include "base/threading/thread_checker.h"
+#include "third_party/WebKit/public/platform/modules/mediasession/WebMediaSession.h"
+
+namespace content {
+
+class RendererMediaSessionManager;
mlamouri (slow - plz ping) 2015/09/28 15:16:02 nit: not needed.
davve 2015/10/06 12:05:13 Done.
+
+class WebMediaSessionAndroid : public blink::WebMediaSession {
+ public:
+ WebMediaSessionAndroid();
+ virtual ~WebMediaSessionAndroid();
+
+ virtual void activate(blink::WebMediaSessionCommandCallback*);
+ virtual void deactivate(blink::WebMediaSessionCommandCallback*);
mlamouri (slow - plz ping) 2015/09/28 15:16:02 = override; for both.
davve 2015/10/06 12:05:13 Done.
+
+ private:
+ base::ThreadChecker main_thread_checker_;
mlamouri (slow - plz ping) 2015/09/28 15:16:02 For a feature that is only available from a Window
davve 2015/10/06 12:05:13 Removed.
+
+ DISALLOW_COPY_AND_ASSIGN(WebMediaSessionAndroid);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIASESSION_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698