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 AudioTrackSourceBuffer_h | |
| 6 #define AudioTrackSourceBuffer_h | |
| 7 | |
| 8 #include "platform/Supplementable.h" | |
| 9 #include "wtf/Allocator.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 | |
| 13 class AudioTrack; | |
| 14 class SourceBuffer; | |
| 15 | |
| 16 class AudioTrackSourceBuffer final : public GarbageCollectedFinalized<AudioTrack SourceBuffer>, public HeapSupplement<AudioTrack> { | |
|
philipj_slow
2016/02/26 13:36:54
Did you check if it's possible to have only a sing
servolk
2016/02/27 01:03:45
Good idea, I haven't tried that yet, I'll give it
servolk
2016/03/03 03:39:26
Done.
| |
| 17 USING_GARBAGE_COLLECTED_MIXIN(AudioTrackSourceBuffer); | |
| 18 public: | |
| 19 static AudioTrackSourceBuffer& from(AudioTrack&); | |
| 20 virtual ~AudioTrackSourceBuffer(); | |
| 21 | |
| 22 static SourceBuffer* sourceBuffer(AudioTrack&); | |
| 23 | |
| 24 DECLARE_VIRTUAL_TRACE(); | |
| 25 | |
| 26 private: | |
| 27 static const char* supplementName(); | |
| 28 explicit AudioTrackSourceBuffer(SourceBuffer*); | |
| 29 | |
| 30 WeakMember<SourceBuffer> m_sourceBuffer; | |
|
philipj_slow
2016/02/26 13:36:54
Should this really be weak? If a script has a refe
servolk
2016/02/27 01:03:45
I don't know much about oilpan/GC being used by bl
fs
2016/02/29 11:11:11
Oilpan handles reference-loops (it is one of the h
servolk
2016/03/03 03:39:26
Done.
| |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 | |
| 35 #endif | |
| OLD | NEW |