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 VideoTrackSourceBuffer_h |
| 6 #define VideoTrackSourceBuffer_h |
| 7 |
| 8 #include "platform/Supplementable.h" |
| 9 #include "wtf/Allocator.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class VideoTrack; |
| 14 class SourceBuffer; |
| 15 |
| 16 class VideoTrackSourceBuffer final : public GarbageCollectedFinalized<VideoTrack
SourceBuffer>, public HeapSupplement<VideoTrack> { |
| 17 USING_GARBAGE_COLLECTED_MIXIN(VideoTrackSourceBuffer); |
| 18 public: |
| 19 static VideoTrackSourceBuffer& from(VideoTrack&); |
| 20 virtual ~VideoTrackSourceBuffer(); |
| 21 |
| 22 static SourceBuffer* sourceBuffer(VideoTrack&); |
| 23 |
| 24 DECLARE_VIRTUAL_TRACE(); |
| 25 |
| 26 private: |
| 27 static const char* supplementName(); |
| 28 explicit VideoTrackSourceBuffer(SourceBuffer*); |
| 29 |
| 30 WeakMember<SourceBuffer> m_sourceBuffer; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif |
OLD | NEW |