Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #ifndef NavigatorMediaSession_h | |
|
whywhat
2016/09/13 16:23:26
nit copyright owners yadayada
Zhiqiang Zhang (Slow)
2016/09/13 18:51:52
Done. Thanks ;)
| |
| 2 #define NavigatorMediaSession_h | |
| 3 | |
| 4 #include "core/frame/DOMWindowProperty.h" | |
| 5 #include "core/frame/Navigator.h" | |
| 6 #include "modules/mediasession/MediaSession.h" | |
| 7 #include "platform/Supplementable.h" | |
| 8 | |
| 9 namespace blink { | |
| 10 | |
| 11 class Navigator; | |
| 12 | |
| 13 class NavigatorMediaSession final : public GarbageCollected<NavigatorMediaSessio n>, public Supplement<Navigator>, public DOMWindowProperty { | |
| 14 USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaSession); | |
| 15 | |
| 16 public: | |
| 17 static NavigatorMediaSession& from(Navigator&); | |
| 18 static MediaSession* mediaSession(Navigator&); | |
| 19 | |
| 20 DECLARE_TRACE(); | |
| 21 | |
| 22 private: | |
| 23 NavigatorMediaSession(Navigator&); | |
| 24 static const char* supplementName(); | |
| 25 | |
| 26 Member<MediaSession> m_session; | |
| 27 }; | |
| 28 } | |
| 29 | |
| 30 #endif // NavigatorMediaSession_h | |
| OLD | NEW |