Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ | |
| 7 | |
| 8 #include "chrome/browser/media/router/media_sink.h" | |
| 9 #include "url/gurl.h" | |
| 10 | |
| 11 namespace media_router { | |
| 12 | |
| 13 // Represents a dial sink to which media can be routed. | |
| 14 class DialMediaSink : public MediaSink { | |
| 15 public: | |
| 16 DialMediaSink(const MediaSink::Id& sink_id, | |
| 17 const std::string& name, | |
| 18 const IconType icon_type); | |
| 19 DialMediaSink(const DialMediaSink& other); | |
| 20 ~DialMediaSink(); | |
| 21 | |
| 22 const std::string& ip_address() const { return ip_address_; } | |
| 23 void set_ip_address(const std::string& ip_address) { | |
| 24 ip_address_ = ip_address; | |
| 25 } | |
| 26 const GURL& app_url() const { return app_url_; } | |
| 27 void set_app_url(const GURL& app_url) { app_url_ = app_url; } | |
| 28 | |
| 29 // Used by mojo. | |
| 30 static const DialMediaSink* Cast(const MediaSink* sink); | |
| 31 static DialMediaSink* Cast(MediaSink* sink); | |
| 32 | |
| 33 private: | |
| 34 // Used for feedback | |
|
imcheng
2017/02/08 01:28:08
Not needed.
zhaobin
2017/02/09 00:13:52
Done.
| |
| 35 std::string ip_address_; | |
| 36 | |
| 37 // Used for DIAL launch | |
|
imcheng
2017/02/08 01:28:08
I would probably write this as:
// The base URL u
zhaobin
2017/02/09 00:13:52
Done.
| |
| 38 GURL app_url_; | |
| 39 }; | |
| 40 | |
| 41 } // namespace media_router | |
| 42 | |
| 43 #endif // CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_ | |
| OLD | NEW |