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 SourceBufferTrackBaseSupplement_h |
| 6 #define SourceBufferTrackBaseSupplement_h |
| 7 |
| 8 #include "platform/Supplementable.h" |
| 9 #include "wtf/Allocator.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class TrackBase; |
| 14 class SourceBuffer; |
| 15 |
| 16 class SourceBufferTrackBaseSupplement : public GarbageCollected<SourceBufferTrac
kBaseSupplement>, public Supplement<TrackBase> { |
| 17 USING_GARBAGE_COLLECTED_MIXIN(SourceBufferTrackBaseSupplement); |
| 18 public: |
| 19 static SourceBuffer* sourceBuffer(TrackBase&); |
| 20 static void setSourceBuffer(TrackBase&, SourceBuffer*); |
| 21 |
| 22 DECLARE_VIRTUAL_TRACE(); |
| 23 |
| 24 private: |
| 25 static SourceBufferTrackBaseSupplement& from(TrackBase&); |
| 26 static SourceBufferTrackBaseSupplement* fromIfExists(TrackBase&); |
| 27 |
| 28 Member<SourceBuffer> m_sourceBuffer; |
| 29 }; |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif |
| 34 |
OLD | NEW |