#include "components/media_router/common/media_route.h"
#include <ostream>
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "components/media_router/common/media_source.h"
namespace media_router {
constexpr char kRouteIdPrefix[] = …;
namespace {
bool IsValidMediaRouteId(const MediaRoute::Id route_id) { … }
}
MediaRoute::Id MediaRoute::GetMediaRouteId(const std::string& presentation_id,
const MediaSink::Id& sink_id,
const MediaSource& source) { … }
std::string MediaRoute::GetPresentationIdFromMediaRouteId(
const MediaRoute::Id route_id) { … }
std::string MediaRoute::GetSinkIdFromMediaRouteId(
const MediaRoute::Id route_id) { … }
std::string MediaRoute::GetMediaSourceIdFromMediaRouteId(
const MediaRoute::Id route_id) { … }
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)
: … { … }
MediaRoute::MediaRoute() : … { … }
MediaRoute::MediaRoute(const MediaRoute&) = default;
MediaRoute& MediaRoute::operator=(const MediaRoute&) = default;
MediaRoute::MediaRoute(MediaRoute&&) = default;
MediaRoute& MediaRoute::operator=(MediaRoute&&) = default;
MediaRoute::~MediaRoute() = default;
bool MediaRoute::IsLocalMirroringRoute() const { … }
bool MediaRoute::operator==(const MediaRoute& other) const { … }
std::ostream& operator<<(std::ostream& stream, const MediaRoute& route) { … }
}