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

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

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, 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
« no previous file with comments | « media/base/text_track_config.h ('k') | media/base/video_decoder_config.h » ('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 #include "media/base/text_track_config.h" 5 #include "media/base/text_track_config.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 TextTrackConfig::TextTrackConfig() 9 TextTrackConfig::TextTrackConfig()
10 : kind_(kTextNone) { 10 : kind_(kTextNone) {
11 } 11 }
12 12
13 TextTrackConfig::TextTrackConfig(TextKind kind, 13 TextTrackConfig::TextTrackConfig(TextKind kind,
14 const std::string& label, 14 const std::string& label,
15 const std::string& language, 15 const std::string& language,
16 const std::string& id) 16 const std::string& id)
17 : kind_(kind), 17 : kind_(kind),
18 label_(label), 18 label_(label),
19 language_(language), 19 language_(language),
20 id_(id) { 20 id_(id) {
21 } 21 }
22 22
23 TextTrackConfig::TextTrackConfig(const TextTrackConfig& other) = default;
24
23 bool TextTrackConfig::Matches(const TextTrackConfig& config) const { 25 bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
24 return config.kind() == kind_ && 26 return config.kind() == kind_ &&
25 config.label() == label_ && 27 config.label() == label_ &&
26 config.language() == language_ && 28 config.language() == language_ &&
27 config.id() == id_; 29 config.id() == id_;
28 } 30 }
29 31
30 } // namespace media 32 } // namespace media
OLDNEW
« no previous file with comments | « media/base/text_track_config.h ('k') | media/base/video_decoder_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698