Convert browser_tests to Swarming.
[chromium-blink-merge.git] / chrome / browser / media / router / media_sink.h
blobface195ba403e1cae722a04b0317ffe7f766bfd2
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_
8 #include <string>
10 namespace media_router {
12 // Represents a sink to which media can be routed.
13 class MediaSink {
14 public:
15 using Id = std::string;
17 MediaSink(const MediaSink::Id& sink_id, const std::string& name);
19 ~MediaSink();
21 const MediaSink::Id& id() const { return sink_id_; }
22 const std::string& name() const { return name_; }
24 bool Equals(const MediaSink& other) const;
25 bool Empty() const;
27 private:
28 // Unique identifier for the MediaSink.
29 MediaSink::Id sink_id_;
30 // Descriptive name of the MediaSink.
31 // Optional, can use an empty string if no sink name is available.
32 std::string name_;
35 } // namespace media_router
37 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_