blob: 86ed39d414e5390fa46028e563dc0bc9d7aa654d [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/common/media_router/media_route.h"
#include "base/logging.h"
#include "chrome/common/media_router/media_source.h"
namespace media_router {
MediaRoute::MediaRoute(const MediaRoute::Id& media_route_id,
const MediaSource& media_source,
const MediaSink::Id& media_sink_id,
const std::string& description,
bool is_local,
bool for_display)
: media_route_id_(media_route_id),
media_source_(media_source),
media_sink_id_(media_sink_id),
description_(description),
is_local_(is_local),
for_display_(for_display),
is_incognito_(false),
is_local_presentation_(false) {}
MediaRoute::MediaRoute(const MediaRoute& other) = default;
MediaRoute::MediaRoute() {}
MediaRoute::~MediaRoute() = default;
bool MediaRoute::Equals(const MediaRoute& other) const {
return media_route_id_ == other.media_route_id_;
}
} // namespace media_router