OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
wolenetz
2016/02/26 00:59:41
nit: here and elsewhere in the new files, no (c) t
servolk
2016/02/26 01:56:31
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_BASE_MEDIA_TRACK_H_ | |
6 #define MEDIA_BASE_MEDIA_TRACK_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "media/base/media_export.h" | |
11 | |
12 namespace media { | |
13 | |
14 class MEDIA_EXPORT MediaTrack { | |
15 public: | |
16 enum Type { Text, Audio, Video }; | |
17 MediaTrack(Type type, | |
18 const std::string& id, | |
19 const std::string& kind, | |
20 const std::string& label, | |
21 const std::string& lang); | |
22 virtual ~MediaTrack(); | |
wolenetz
2016/02/26 00:06:20
Is this class meant to be subtyped? Do we need vir
servolk
2016/02/26 01:56:31
This class is essentially a Chromium-level counter
wolenetz
2016/02/26 19:29:27
Acknowledged.
| |
23 | |
24 Type type() const { return type_; } | |
25 | |
26 const std::string& id() const { return id_; } | |
27 const std::string& kind() const { return kind_; } | |
28 const std::string& label() const { return label_; } | |
29 const std::string& language() const { return language_; } | |
30 | |
31 private: | |
32 Type type_; | |
33 std::string id_; | |
34 std::string kind_; | |
35 std::string label_; | |
36 std::string language_; | |
37 }; | |
38 | |
39 } // namespace media | |
40 | |
41 #endif // MEDIA_BASE_MEDIA_TRACK_H_ | |
OLD | NEW |