summaryrefslogtreecommitdiffstats
path: root/chrome/browser/media/router/media_sink.cc
blob: 0b59c5fffe23277921cd8bc94b7e0a8222b2232c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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/media/router/media_sink.h"

namespace media_router {

MediaSink::MediaSink(const MediaSink::Id& sink_id,
                     const std::string& name,
                     const MediaSink::IconType icon_type)
    : sink_id_(sink_id), name_(name), icon_type_(icon_type) {}

MediaSink::~MediaSink() {
}

bool MediaSink::Equals(const MediaSink& other) const {
  return sink_id_ == other.sink_id_;
}

}  // namespace media_router