| Index: media/base/text_track_config.cc
|
| diff --git a/media/base/text_track_config.cc b/media/base/text_track_config.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0023c69dbdca3611141b16fc0402bdc4e84bcbd5
|
| --- /dev/null
|
| +++ b/media/base/text_track_config.cc
|
| @@ -0,0 +1,27 @@
|
| +// 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_config.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_;
|
| +}
|
| +
|
| +} // namespace media
|
|
|