| 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..c01e1ae70d9a03c12a09a8152ed19796066b7db1
|
| --- /dev/null
|
| +++ b/chrome/browser/media/router/dial_media_sink.h
|
| @@ -0,0 +1,42 @@
|
| +// 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() override;
|
| +
|
| + 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:
|
| + std::string ip_address_;
|
| +
|
| + // The base URL used for DIAL operations.
|
| + GURL app_url_;
|
| +};
|
| +
|
| +} // namespace media_router
|
| +
|
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_DIAL_MEDIA_SINK_H_
|
|
|