Chromium Code Reviews| Index: third_party/WebKit/Source/modules/mediasource/AudioTrackSourceBuffer.h |
| diff --git a/third_party/WebKit/Source/modules/mediasource/AudioTrackSourceBuffer.h b/third_party/WebKit/Source/modules/mediasource/AudioTrackSourceBuffer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0de2c9e3204bc0e033d9ef05eeae7155f5afad74 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/modules/mediasource/AudioTrackSourceBuffer.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef AudioTrackSourceBuffer_h |
| +#define AudioTrackSourceBuffer_h |
| + |
| +#include "platform/Supplementable.h" |
| +#include "wtf/Allocator.h" |
| + |
| +namespace blink { |
| + |
| +class AudioTrack; |
| +class SourceBuffer; |
| + |
| +class AudioTrackSourceBuffer final : public GarbageCollectedFinalized<AudioTrackSourceBuffer>, 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.
|
| + USING_GARBAGE_COLLECTED_MIXIN(AudioTrackSourceBuffer); |
| +public: |
| + static AudioTrackSourceBuffer& from(AudioTrack&); |
| + virtual ~AudioTrackSourceBuffer(); |
| + |
| + static SourceBuffer* sourceBuffer(AudioTrack&); |
| + |
| + DECLARE_VIRTUAL_TRACE(); |
| + |
| +private: |
| + static const char* supplementName(); |
| + explicit AudioTrackSourceBuffer(SourceBuffer*); |
| + |
| + 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.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |