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

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

Issue 2401013002: Make MediaSession per frame as an attribute of Navigator (Closed)
Patch Set: fixed tests Created 4 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 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"
mlamouri (slow - plz ping) 2016/10/10 20:30:35 Do you need this include?
Zhiqiang Zhang (Slow) 2016/10/11 10:56:04 Removed.
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
whywhat 2016/10/10 20:45:10 nit: don't forget to write comments to new classes
Zhiqiang Zhang (Slow) 2016/10/11 10:56:04 Done.
18 : public GarbageCollected<NavigatorMediaSession>,
19 public Supplement<Navigator> {
20 USING_GARBAGE_COLLECTED_MIXIN(NavigatorMediaSession);
21
22 public:
23 static NavigatorMediaSession& from(Navigator&);
24 static MediaSession* mediaSession(Navigator&);
25
26 DECLARE_TRACE();
27
28 private:
29 NavigatorMediaSession(Navigator&);
30 static const char* supplementName();
31
32 Member<MediaSession> m_session;
33 };
34
35 } // namespace blink
36
37 #endif // NavigatorMediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698