Index: third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.h |
diff --git a/third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.h b/third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d95df2cccd22b3b0333dc389aa85f7bcbc92e74b |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2016 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 NavigatorMediaSession_h |
+#define NavigatorMediaSession_h |
+ |
+#include "core/frame/DOMWindowProperty.h" |
+#include "core/frame/Navigator.h" |
+#include "modules/mediasession/MediaSession.h" |
+#include "platform/Supplementable.h" |
+ |
+namespace blink { |
+ |
+class Navigator; |
+ |
+class NavigatorMediaSession final : public GarbageCollected<NavigatorMediaSession>, public Supplement<Navigator>, public DOMWindowProperty { |
haraken
2016/09/14 00:10:46
Do you really need to make NavigatorMediaSession i
Zhiqiang Zhang (Slow)
2016/09/14 14:11:30
Ahh, it's not needed. Thanks!
|
+ USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaSession); |
+ |
+public: |
+ static NavigatorMediaSession& from(Navigator&); |
+ static MediaSession* mediaSession(Navigator&); |
+ |
+ DECLARE_TRACE(); |
+ |
+private: |
+ NavigatorMediaSession(Navigator&); |
+ static const char* supplementName(); |
+ |
+ Member<MediaSession> m_session; |
+}; |
+} |
+ |
+#endif // NavigatorMediaSession_h |