1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/media/router/media_source.h"
9 namespace media_router
{
11 MediaSource::MediaSource(const MediaSource::Id
& source_id
) : id_(source_id
) {
14 MediaSource::MediaSource() {
17 MediaSource::~MediaSource() {}
19 MediaSource::Id
MediaSource::id() const {
23 bool MediaSource::Equals(const MediaSource
& other
) const {
24 return id_
== other
.id();
27 bool MediaSource::Empty() const {
31 std::string
MediaSource::ToString() const {
32 return "MediaSource[" + id_
+ "]";
35 } // namespace media_router