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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/TrackDefault.cpp

Issue 1678523003: Implement InitSegmentReceived algorithm in blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-audiotrack
Patch Set: Don't check track ids in tests Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/mediasource/TrackDefault.h" 5 #include "modules/mediasource/TrackDefault.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/html/track/AudioTrack.h" 8 #include "core/html/track/AudioTrack.h"
9 #include "core/html/track/TextTrack.h" 9 #include "core/html/track/TextTrack.h"
10 #include "core/html/track/VideoTrack.h" 10 #include "core/html/track/VideoTrack.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 static const AtomicString& audioKeyword() 14 const AtomicString& TrackDefault::audioKeyword()
15 { 15 {
16 DEFINE_STATIC_LOCAL(const AtomicString, audio, ("audio")); 16 DEFINE_STATIC_LOCAL(const AtomicString, audio, ("audio"));
17 return audio; 17 return audio;
18 } 18 }
19 19
20 static const AtomicString& videoKeyword() 20 const AtomicString& TrackDefault::videoKeyword()
21 { 21 {
22 DEFINE_STATIC_LOCAL(const AtomicString, video, ("video")); 22 DEFINE_STATIC_LOCAL(const AtomicString, video, ("video"));
23 return video; 23 return video;
24 } 24 }
25 25
26 static const AtomicString& textKeyword() 26 const AtomicString& TrackDefault::textKeyword()
27 { 27 {
28 DEFINE_STATIC_LOCAL(const AtomicString, text, ("text")); 28 DEFINE_STATIC_LOCAL(const AtomicString, text, ("text"));
29 return text; 29 return text;
30 } 30 }
31 31
32 TrackDefault* TrackDefault::create(const AtomicString& type, const String& langu age, const String& label, const Vector<String>& kinds, const String& byteStreamT rackID, ExceptionState& exceptionState) 32 TrackDefault* TrackDefault::create(const AtomicString& type, const String& langu age, const String& label, const Vector<String>& kinds, const String& byteStreamT rackID, ExceptionState& exceptionState)
33 { 33 {
34 // Per 11 Nov 2014 Editor's Draft 34 // Per 11 Nov 2014 Editor's Draft
35 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source. html#idl-def-TrackDefault 35 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source. html#idl-def-TrackDefault
36 // with expectation that 36 // with expectation that
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 TrackDefault::TrackDefault(const AtomicString& type, const String& language, con st String& label, const Vector<String>& kinds, const String& byteStreamTrackID) 95 TrackDefault::TrackDefault(const AtomicString& type, const String& language, con st String& label, const Vector<String>& kinds, const String& byteStreamTrackID)
96 : m_type(type) 96 : m_type(type)
97 , m_byteStreamTrackID(byteStreamTrackID) 97 , m_byteStreamTrackID(byteStreamTrackID)
98 , m_language(language) 98 , m_language(language)
99 , m_label(label) 99 , m_label(label)
100 , m_kinds(kinds) 100 , m_kinds(kinds)
101 { 101 {
102 } 102 }
103 103
104 } // namespace blink 104 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698