Chromium Code Reviews| 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 SourceBufferTrackBaseSupplement& from(TrackBase&); | |
| 20 | |
| 21 static SourceBuffer* sourceBuffer(TrackBase&); | |
| 22 void setSourceBuffer(SourceBuffer*); | |
| 
 
philipj_slow
2016/04/07 08:59:35
Hmm, it doesn't matter much, but I think it'd look
 
servolk
2016/04/07 17:03:55
Done.
 
 | |
| 23 | |
| 24 DECLARE_VIRTUAL_TRACE(); | |
| 25 | |
| 26 private: | |
| 27 explicit SourceBufferTrackBaseSupplement(TrackBase&); | |
| 28 Member<SourceBuffer> m_sourceBuffer; | |
| 29 }; | |
| 30 | |
| 31 } // namespace blink | |
| 32 | |
| 33 #endif | |
| 34 | |
| OLD | NEW |