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

Side by Side Diff: media/base/media_track.h

Issue 1716503002: Basic media tracks implementation for media stream parsers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/media_track.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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 ~MediaTrack();
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_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/media_track.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698