Index: media/base/text_track.cc |
diff --git a/media/base/text_track.cc b/media/base/text_track.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e5474e1bd2896a8ab0be09e20a0fbc0856c072b2 |
--- /dev/null |
+++ b/media/base/text_track.cc |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "media/base/text_track.h" |
+ |
+namespace media { |
+ |
+TextTrackConfig::TextTrackConfig() |
+ : kind_(kTextNone) { |
+} |
+ |
+TextTrackConfig::TextTrackConfig(TextKind kind, |
+ const std::string& label, |
+ const std::string& language) |
+ : kind_(kind), |
+ label_(label), |
+ language_(language) { |
+} |
+ |
+bool TextTrackConfig::Matches(const TextTrackConfig& config) const { |
+ return config.kind() == kind_ && |
+ config.label() == label_ && |
+ config.language() == language_; |
+} |
+ |
+TextKind TextTrackConfig::kind() const { |
+ return kind_; |
+} |
+ |
+const std::string& TextTrackConfig::label() const { |
+ return label_; |
+} |
+ |
+const std::string& TextTrackConfig::language() const { |
+ return language_; |
+} |
+ |
+} // namespace media |