Chromium Code Reviews| Index: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
| diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
| index 6bc95ea2bc4d7e4bcb85edbb155d017b0032abba..bb1805817b430a917a7d7b68e37e810df87230d6 100644 |
| --- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
| +++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
| @@ -33,6 +33,8 @@ |
| #include "core/dom/ActiveDOMObject.h" |
| #include "core/fileapi/FileReaderLoaderClient.h" |
| +#include "core/html/track/AudioTrackList.h" |
| +#include "core/html/track/VideoTrackList.h" |
| #include "modules/EventTargetModules.h" |
| #include "modules/mediasource/TrackDefaultList.h" |
| #include "platform/AsyncMethodRunner.h" |
| @@ -75,6 +77,8 @@ public: |
| TimeRanges* buffered(ExceptionState&) const; |
| double timestampOffset() const; |
| void setTimestampOffset(double, ExceptionState&); |
| + AudioTrackList& audioTracks(); |
| + VideoTrackList& videoTracks(); |
| void appendBuffer(PassRefPtr<DOMArrayBuffer> data, ExceptionState&); |
| void appendBuffer(PassRefPtr<DOMArrayBufferView> data, ExceptionState&); |
| void appendStream(Stream*, ExceptionState&); |
| @@ -145,6 +149,9 @@ private: |
| double m_appendWindowEnd; |
| bool m_firstInitializationSegmentReceived; |
| + Member<AudioTrackList> m_audioTracks; |
|
philipj_slow
2016/02/23 04:35:07
I think this will work with Oilpan disabled, but b
|
| + Member<VideoTrackList> m_videoTracks; |
| + |
| Vector<unsigned char> m_pendingAppendData; |
| size_t m_pendingAppendDataOffset; |
| Member<AsyncMethodRunner<SourceBuffer>> m_appendBufferAsyncPartRunner; |