blob: 5d2101594ef0fa49b2cac7fbba376286550d33ca [file] [log] [blame]
// Copyright 2015 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/ui/media_router/media_sink_with_cast_modes.h"
namespace media_router {
MediaSinkWithCastModes::MediaSinkWithCastModes(const MediaSink& sink)
: sink(sink) {}
MediaSinkWithCastModes::MediaSinkWithCastModes(
const MediaSinkWithCastModes& other) = default;
MediaSinkWithCastModes::~MediaSinkWithCastModes() {}
bool MediaSinkWithCastModes::operator==(
const MediaSinkWithCastModes& other) const {
return sink.id() == other.sink.id() && cast_modes == other.cast_modes;
}
} // namespace media_router