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

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

Issue 2338223003: Unassociating MediaSession from media players (in blink & content) (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 2015 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 HTMLMediaElementMediaSession_h
6 #define HTMLMediaElementMediaSession_h
7
8 #include "core/html/HTMLMediaElement.h"
9 #include "modules/ModulesExport.h"
10 #include "modules/mediasession/MediaSession.h"
11 #include "platform/Supplementable.h"
12 #include "platform/heap/Handle.h"
13
14 namespace blink {
15
16 // A supplement to HTMLMediaElement responsible for the integration of
17 // MediaSession with HTMLMediaElement.
18 class MODULES_EXPORT HTMLMediaElementMediaSession final : public GarbageCollecte d<HTMLMediaElementMediaSession>, public Supplement<HTMLMediaElement> {
19 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaSession);
20 public:
21 static MediaSession* session(HTMLMediaElement&);
22 static void setSession(HTMLMediaElement&, MediaSession*, ExceptionState&);
23
24 DECLARE_VIRTUAL_TRACE();
25
26 private:
27 static HTMLMediaElementMediaSession& from(HTMLMediaElement&);
28 static HTMLMediaElementMediaSession* fromIfExists(HTMLMediaElement&);
29 static const char* supplementName();
30
31 Member<MediaSession> m_session;
32 };
33
34 } // namespace blink
35
36 #endif // HTMLMediaElementMediaSession_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698