Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: third_party/WebKit/Source/core/html/track/TrackBase.h

Issue 1659653002: Pass MSE media track info from ChunkDemuxer to blink::SourceBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-media-tracks-in-media
Patch Set: nit Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/track/TrackBase.h
diff --git a/third_party/WebKit/Source/core/html/track/TrackBase.h b/third_party/WebKit/Source/core/html/track/TrackBase.h
index 4a71790195bedd7e70d6f4d798051bfa35f33df3..0033635fc9a908e7884ea466bfe12cf2e3f1fe75 100644
--- a/third_party/WebKit/Source/core/html/track/TrackBase.h
+++ b/third_party/WebKit/Source/core/html/track/TrackBase.h
@@ -42,8 +42,7 @@ public:
WebMediaPlayer::TrackId trackId() const { return m_trackId; }
- enum TrackType { TextTrack, AudioTrack, VideoTrack };
- TrackType type() const { return m_type; }
+ WebMediaPlayer::TrackType type() const { return m_type; }
const AtomicString& kind() const { return m_kind; }
virtual void setKind(const AtomicString&);
@@ -64,14 +63,14 @@ public:
DECLARE_VIRTUAL_TRACE();
protected:
- TrackBase(TrackType, const AtomicString& label, const AtomicString& language, const String& id);
+ TrackBase(WebMediaPlayer::TrackType, const AtomicString& label, const AtomicString& language, const String& id);
virtual bool isValidKind(const AtomicString&) const = 0;
virtual AtomicString defaultKind() const = 0;
private:
WebMediaPlayer::TrackId m_trackId;
- TrackType m_type;
+ WebMediaPlayer::TrackType m_type;
AtomicString m_kind;
AtomicString m_label;
AtomicString m_language;

Powered by Google App Engine
This is Rietveld 408576698