blob: 4924140ce0e86bda2a74cb79cfa6abd212b347db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// 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)
: sink_id_(sink_id), name_(name) {
}
MediaSink::~MediaSink() {
}
bool MediaSink::Equals(const MediaSink& other) const {
return sink_id_ == other.sink_id_;
}
bool MediaSink::Empty() const {
return sink_id_.empty();
}
} // namespace media_router
|