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 c424e05d3ffb0141d975318b30dd2822c6662be2..baa22e3470961b191e2b530b339d1866e181cec3 100644 |
--- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h |
@@ -44,6 +44,7 @@ |
namespace blink { |
+class AudioTrackList; |
class DOMArrayBuffer; |
class DOMArrayBufferView; |
class ExceptionState; |
@@ -52,6 +53,7 @@ class GenericEventQueue; |
class MediaSource; |
class Stream; |
class TimeRanges; |
+class VideoTrackList; |
class WebSourceBuffer; |
class SourceBuffer final |
@@ -90,6 +92,9 @@ public: |
TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); } |
void setTrackDefaults(TrackDefaultList*, ExceptionState&); |
+ AudioTrackList& audioTracks(); |
+ VideoTrackList& videoTracks(); |
+ |
void abortIfUpdating(); |
void removedFromMediaSource(); |
@@ -106,7 +111,7 @@ public: |
const AtomicString& interfaceName() const override; |
// WebSourceBufferClient interface |
- void initializationSegmentReceived() override; |
+ std::vector<WebMediaPlayer::TrackId> initializationSegmentReceived(const std::vector<MediaTrackInfo>&) override; |
// Oilpan: eagerly release owned m_webSourceBuffer |
EAGERLY_FINALIZE(); |
@@ -145,6 +150,8 @@ private: |
AtomicString m_mode; |
bool m_updating; |
double m_timestampOffset; |
+ Member<AudioTrackList> m_audioTracks; |
+ Member<VideoTrackList> m_videoTracks; |
double m_appendWindowStart; |
double m_appendWindowEnd; |
bool m_firstInitializationSegmentReceived; |