Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / media / router / media_sink.h
blobaf4e9a8d29501ff3913687a93725674ac63bf512
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 #include "chrome/browser/media/router/media_route_id.h"
12 namespace media_router {
14 using MediaSinkId = std::string;
16 // Represents a sink to which media can be routed.
17 class MediaSink {
18 public:
19 // |sink_id|: Unique identifier for the MediaSink.
20 // |name|: Descriptive name of the MediaSink.
21 MediaSink(const MediaSinkId& sink_id,
22 const std::string& name);
23 ~MediaSink();
25 const MediaSinkId& sink_id() const { return sink_id_; }
26 const std::string& name() const { return name_; }
28 bool Equals(const MediaSink& other) const;
30 private:
31 const MediaSinkId sink_id_;
32 const std::string name_;
35 } // namespace media_router
37 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SINK_H_