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
3 // found in the LICENSE file.
4 
5 #include "media/base/text_track_config.h"
6 
7 namespace media {
8 
TextTrackConfig()9 TextTrackConfig::TextTrackConfig()
10     : kind_(kTextNone) {
11 }
12 
TextTrackConfig(TextKind kind,const std::string & label,const std::string & language,const std::string & id)13 TextTrackConfig::TextTrackConfig(TextKind kind,
14                                  const std::string& label,
15                                  const std::string& language,
16                                  const std::string& id)
17     : kind_(kind),
18       label_(label),
19       language_(language),
20       id_(id) {
21 }
22 
23 TextTrackConfig::TextTrackConfig(const TextTrackConfig& other) = default;
24 
Matches(const TextTrackConfig & config) const25 bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
26   return config.kind() == kind_ &&
27          config.label() == label_ &&
28          config.language() == language_ &&
29          config.id() == id_;
30 }
31 
32 }  // namespace media
33