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

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

Issue 1731403002: media: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/serial_runner.cc ('k') | media/base/text_track_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BASE_TEXT_TRACK_CONFIG_H_ 5 #ifndef MEDIA_BASE_TEXT_TRACK_CONFIG_H_
6 #define MEDIA_BASE_TEXT_TRACK_CONFIG_H_ 6 #define MEDIA_BASE_TEXT_TRACK_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 // Specifies the varieties of text tracks. 14 // Specifies the varieties of text tracks.
15 enum TextKind { 15 enum TextKind {
16 kTextSubtitles, 16 kTextSubtitles,
17 kTextCaptions, 17 kTextCaptions,
18 kTextDescriptions, 18 kTextDescriptions,
19 kTextMetadata, 19 kTextMetadata,
20 kTextNone 20 kTextNone
21 }; 21 };
22 22
23 class MEDIA_EXPORT TextTrackConfig { 23 class MEDIA_EXPORT TextTrackConfig {
24 public: 24 public:
25 TextTrackConfig(); 25 TextTrackConfig();
26 TextTrackConfig(const TextTrackConfig& other);
26 TextTrackConfig(TextKind kind, 27 TextTrackConfig(TextKind kind,
27 const std::string& label, 28 const std::string& label,
28 const std::string& language, 29 const std::string& language,
29 const std::string& id); 30 const std::string& id);
30 31
31 // Returns true if all fields in |config| match this config. 32 // Returns true if all fields in |config| match this config.
32 bool Matches(const TextTrackConfig& config) const; 33 bool Matches(const TextTrackConfig& config) const;
33 34
34 TextKind kind() const { return kind_; } 35 TextKind kind() const { return kind_; }
35 const std::string& label() const { return label_; } 36 const std::string& label() const { return label_; }
36 const std::string& language() const { return language_; } 37 const std::string& language() const { return language_; }
37 const std::string& id() const { return id_; } 38 const std::string& id() const { return id_; }
38 39
39 private: 40 private:
40 TextKind kind_; 41 TextKind kind_;
41 std::string label_; 42 std::string label_;
42 std::string language_; 43 std::string language_;
43 std::string id_; 44 std::string id_;
44 }; 45 };
45 46
46 } // namespace media 47 } // namespace media
47 48
48 #endif // MEDIA_BASE_TEXT_TRACK_H_ 49 #endif // MEDIA_BASE_TEXT_TRACK_H_
OLDNEW
« no previous file with comments | « media/base/serial_runner.cc ('k') | media/base/text_track_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698