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

Side by Side Diff: third_party/WebKit/Source/modules/mediasession/NavigatorMediaSession.h

Issue 2252783004: Implement MediaSession (metadata) per frame [NOT READY, HAS DEPENDENCY] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Anton's comments Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NavigatorMediaSession_h
6 #define NavigatorMediaSession_h
7
8 #include "core/frame/DOMWindowProperty.h"
9 #include "core/frame/Navigator.h"
10 #include "modules/mediasession/MediaSession.h"
11 #include "platform/Supplementable.h"
12
13 namespace blink {
14
15 class Navigator;
16
17 class NavigatorMediaSession final : public GarbageCollected<NavigatorMediaSessio n>, 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!
18 USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaSession);
19
20 public:
21 static NavigatorMediaSession& from(Navigator&);
22 static MediaSession* mediaSession(Navigator&);
23
24 DECLARE_TRACE();
25
26 private:
27 NavigatorMediaSession(Navigator&);
28 static const char* supplementName();
29
30 Member<MediaSession> m_session;
31 };
32 }
33
34 #endif // NavigatorMediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698