Index: chrome/browser/media/router/dial_media_sink.h |
diff --git a/chrome/browser/media/router/dial_media_sink.h b/chrome/browser/media/router/dial_media_sink.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3d27747a1b730b1a8c3b71192db86bbe93e99b8e |
--- /dev/null |
+++ b/chrome/browser/media/router/dial_media_sink.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2017 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. |
+ |
+#ifndef CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ |
+#define CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ |
+ |
+#include "chrome/browser/media/router/media_sink.h" |
+#include "url/gurl.h" |
+ |
+namespace media_router { |
+ |
+// Represents a dial sink to which media can be routed. |
+class DialMediaSink : public MediaSink { |
+ public: |
+ DialMediaSink(const MediaSink::Id& sink_id, |
+ const std::string& name, |
+ const IconType icon_type); |
+ DialMediaSink(const DialMediaSink& other); |
+ ~DialMediaSink(); |
+ |
+ const std::string& ip_address() const { return ip_address_; } |
+ void set_ip_address(const std::string& ip_address) { |
+ ip_address_ = ip_address; |
+ } |
+ const GURL& app_url() const { return app_url_; } |
+ void set_app_url(const GURL& app_url) { app_url_ = app_url; } |
+ |
+ // Used by mojo. |
+ static const DialMediaSink* Cast(const MediaSink* sink); |
+ static DialMediaSink* Cast(MediaSink* sink); |
+ |
+ private: |
+ // Used for feedback |
+ std::string ip_address_; |
+ |
+ // Used for DIAL launch |
+ GURL app_url_; |
+}; |
+ |
+} // namespace media_router |
+ |
+#endif // CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ |