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

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

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 #ifndef TrackDefault_h 5 #ifndef TrackDefault_h
6 #define TrackDefault_h 6 #define TrackDefault_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "wtf/text/WTFString.h" 9 #include "wtf/text/WTFString.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class ExceptionState; 13 class ExceptionState;
14 14
15 class TrackDefault final : public GarbageCollectedFinalized<TrackDefault>, publi c ScriptWrappable { 15 class TrackDefault final : public GarbageCollectedFinalized<TrackDefault>, publi c ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO(); 16 DEFINE_WRAPPERTYPEINFO();
17 public: 17 public:
18 static const AtomicString& audioKeyword();
19 static const AtomicString& videoKeyword();
20 static const AtomicString& textKeyword();
21
18 static TrackDefault* create(const AtomicString& type, const String& language , const String& label, const Vector<String>& kinds, const String& byteStreamTrac kID, ExceptionState&); 22 static TrackDefault* create(const AtomicString& type, const String& language , const String& label, const Vector<String>& kinds, const String& byteStreamTrac kID, ExceptionState&);
19 23
20 virtual ~TrackDefault(); 24 virtual ~TrackDefault();
21 25
22 // Implement the IDL 26 // Implement the IDL
23 AtomicString type() const { return m_type; } 27 AtomicString type() const { return m_type; }
24 String byteStreamTrackID() const { return m_byteStreamTrackID; } 28 String byteStreamTrackID() const { return m_byteStreamTrackID; }
25 String language() const { return m_language; } 29 String language() const { return m_language; }
26 String label() const { return m_label; } 30 String label() const { return m_label; }
27 const Vector<String>& kinds() const { return m_kinds; } 31 const Vector<String>& kinds() const { return m_kinds; }
28 32
29 DEFINE_INLINE_TRACE() { } 33 DEFINE_INLINE_TRACE() { }
30 34
31 private: 35 private:
32 TrackDefault(const AtomicString& type, const String& language, const String& label, const Vector<String>& kinds, const String& byteStreamTrackID); 36 TrackDefault(const AtomicString& type, const String& language, const String& label, const Vector<String>& kinds, const String& byteStreamTrackID);
33 37
34 const AtomicString m_type; 38 const AtomicString m_type;
35 const String m_byteStreamTrackID; 39 const String m_byteStreamTrackID;
36 const String m_language; 40 const String m_language;
37 const String m_label; 41 const String m_label;
38 const Vector<String> m_kinds; 42 const Vector<String> m_kinds;
39 }; 43 };
40 44
41 } // namespace blink 45 } // namespace blink
42 46
43 #endif // TrackDefault_h 47 #endif // TrackDefault_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698