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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_
10 namespace media_router
{
12 // Represents a sink to which media can be routed.
15 using Id
= std::string
;
17 MediaSink(const MediaSink::Id
& sink_id
,
18 const std::string
& name
);
20 MediaSink(const MediaSink::Id
& sink_id
,
21 const std::string
& name
,
26 const MediaSink::Id
& id() const { return sink_id_
; }
27 const std::string
& name() const { return name_
; }
28 bool is_launching() const { return is_launching_
; }
30 bool Equals(const MediaSink
& other
) const;
34 // Unique identifier for the MediaSink.
35 MediaSink::Id sink_id_
;
36 // Descriptive name of the MediaSink.
37 // Optional, can use an empty string if no sink name is available.
39 // True when the media router is creating a route to this sink.
43 } // namespace media_router
45 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_