OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/browser/media/router/media_status.h" | 5 #include "chrome/common/media_router/media_status.h" |
6 | 6 |
7 namespace media_router { | 7 namespace media_router { |
8 | 8 |
9 MediaStatus::MediaStatus() = default; | 9 MediaStatus::MediaStatus() = default; |
10 | 10 |
11 MediaStatus::MediaStatus(const MediaStatus& other) = default; | 11 MediaStatus::MediaStatus(const MediaStatus& other) = default; |
12 | 12 |
13 MediaStatus::~MediaStatus() = default; | 13 MediaStatus::~MediaStatus() = default; |
14 | 14 |
15 MediaStatus& MediaStatus::operator=(const MediaStatus& other) = default; | 15 MediaStatus& MediaStatus::operator=(const MediaStatus& other) = default; |
16 | 16 |
17 bool MediaStatus::operator==(const MediaStatus& other) const { | 17 bool MediaStatus::operator==(const MediaStatus& other) const { |
18 return title == other.title && description == other.description && | 18 return title == other.title && description == other.description && |
19 can_play_pause == other.can_play_pause && can_mute == other.can_mute && | 19 can_play_pause == other.can_play_pause && can_mute == other.can_mute && |
20 can_set_volume == other.can_set_volume && can_seek == other.can_seek && | 20 can_set_volume == other.can_set_volume && can_seek == other.can_seek && |
21 is_paused == other.is_paused && is_muted == other.is_muted && | 21 is_paused == other.is_paused && is_muted == other.is_muted && |
22 volume == other.volume && duration == other.duration && | 22 volume == other.volume && duration == other.duration && |
23 current_time == other.current_time; | 23 current_time == other.current_time; |
24 } | 24 } |
25 | 25 |
26 } // namespace media_router | 26 } // namespace media_router |
OLD | NEW |