| Index: chrome/browser/media/router/media_status.cc
|
| diff --git a/chrome/browser/media/router/media_status.cc b/chrome/browser/media/router/media_status.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7f3a3cd6c1645d458ee9d5545d6869fa66eaa034
|
| --- /dev/null
|
| +++ b/chrome/browser/media/router/media_status.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2017 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 "chrome/browser/media/router/media_status.h"
|
| +
|
| +namespace media_router {
|
| +
|
| +MediaStatus::MediaStatus() = default;
|
| +
|
| +MediaStatus::MediaStatus(const MediaStatus& other) = default;
|
| +
|
| +MediaStatus::~MediaStatus() = default;
|
| +
|
| +MediaStatus& MediaStatus::operator=(const MediaStatus& other) = default;
|
| +
|
| +bool MediaStatus::operator==(const MediaStatus& other) const {
|
| + return title == other.title && status == other.status &&
|
| + can_play_pause == other.can_play_pause && can_mute == other.can_mute &&
|
| + can_set_volume == other.can_set_volume && can_seek == other.can_seek &&
|
| + is_paused == other.is_paused && is_muted == other.is_muted &&
|
| + volume == other.volume && duration == other.duration &&
|
| + current_time == other.current_time;
|
| +}
|
| +
|
| +} // namespace media_router
|
|
|