Rename GetIconID to GetIconId
[chromium-blink-merge.git] / chrome / browser / media / router / media_source.cc
blob87b4d78788759bd58db0d1b8e166dc5903e0011a
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"
7 #include <string>
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 {
20 return id_;
23 bool MediaSource::Equals(const MediaSource& other) const {
24 return id_ == other.id();
27 bool MediaSource::Empty() const {
28 return id_.empty();
31 std::string MediaSource::ToString() const {
32 return "MediaSource[" + id_ + "]";
35 } // namespace media_router