Chromium Code Reviews| 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..1110c75dd7b926562bca82ba6c8e0a22644cd1bf 100644 |
| --- a/chrome/browser/media/router/media_sink.h |
| +++ b/chrome/browser/media/router/media_sink.h |
| @@ -18,18 +18,24 @@ class MediaSink { |
| public: |
| // |sink_id|: Unique identifier for the MediaSink. |
| // |name|: Descriptive name of the MediaSink. |
| + // Optional, can use an empty string if no sink name is available. |
| MediaSink(const MediaSinkId& sink_id, |
| const std::string& name); |
| + |
| + // Constructs an empty MediaSink. |
| + MediaSink(); |
|
xhwang
2015/04/06 20:51:31
What's the use case of an empty MediaSink?
imcheng
2015/04/06 21:54:20
Removed for now.
|
| + |
| ~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_; |
| + MediaSinkId sink_id_; |
| + std::string name_; |
|
xhwang
2015/04/06 20:51:31
Here and for all other classes, consider DISALLOW_
xhwang
2015/04/06 20:51:31
Why drop the "const", is MediaSink() mutable now?
xhwang
2015/04/06 20:51:31
These are both strings. What's the difference?
imcheng
2015/04/06 21:54:20
From the API perspective MediaSink is still immuta
imcheng
2015/04/06 21:54:20
The ID is internal to the system and is what the c
imcheng
2015/04/06 21:54:20
These need to be copyable because they are put int
|
| }; |
| } // namespace media_router |