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

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: Added DISALLOW_COPY_AND_ASSIGN in MediaTracks Created 4 years, 10 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
(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_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/media_track.cc » ('j') | media/base/media_tracks.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698