| Index: chrome/browser/media/router/media_sink.h
|
| diff --git a/chrome/browser/media/router/media_sink.h b/chrome/browser/media/router/media_sink.h
|
| index af4e9a8d29501ff3913687a93725674ac63bf512..25d75c10f1fc840736f97087509ed1306fd82418 100644
|
| --- a/chrome/browser/media/router/media_sink.h
|
| +++ b/chrome/browser/media/router/media_sink.h
|
| @@ -16,20 +16,23 @@ using MediaSinkId = std::string;
|
| // Represents a sink to which media can be routed.
|
| class MediaSink {
|
| public:
|
| - // |sink_id|: Unique identifier for the MediaSink.
|
| - // |name|: Descriptive name of the MediaSink.
|
| MediaSink(const MediaSinkId& sink_id,
|
| const std::string& name);
|
| +
|
| ~MediaSink();
|
|
|
| - const MediaSinkId& sink_id() const { return sink_id_; }
|
| + const MediaSinkId& id() const { return sink_id_; }
|
| const std::string& name() const { return name_; }
|
|
|
| bool Equals(const MediaSink& other) const;
|
| + bool Empty() const;
|
|
|
| private:
|
| - const MediaSinkId sink_id_;
|
| - const std::string name_;
|
| + // Unique identifier for the MediaSink.
|
| + MediaSinkId sink_id_;
|
| + // Descriptive name of the MediaSink.
|
| + // Optional, can use an empty string if no sink name is available.
|
| + std::string name_;
|
| };
|
|
|
| } // namespace media_router
|
|
|