OLD | NEW |
(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 HTMLMediaElementMediaStream_h |
| 6 #define HTMLMediaElementMediaStream_h |
| 7 |
| 8 #include "core/html/HTMLMediaElement.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class MediaStream; |
| 16 |
| 17 class MODULES_EXPORT HTMLMediaElementMediaStream final : public NoBaseWillBeGarb
ageCollectedFinalized<HTMLMediaElementMediaStream>, public WillBeHeapSupplement<
HTMLMediaElement> { |
| 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElementMediaStream); |
| 19 USING_FAST_MALLOC_WILL_BE_REMOVED(HTMLMediaElementMediaStream); |
| 20 public: |
| 21 DECLARE_VIRTUAL_TRACE(); |
| 22 static MediaStream* srcObject(HTMLMediaElement&); |
| 23 static void setSrcObject(HTMLMediaElement&, MediaStream*); |
| 24 |
| 25 private: |
| 26 HTMLMediaElementMediaStream(); |
| 27 static HTMLMediaElementMediaStream& from(HTMLMediaElement&); |
| 28 static const char* supplementName(); |
| 29 |
| 30 PersistentWillBeMember<MediaStream> m_srcObject; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif |
OLD | NEW |