Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1468)

Unified Diff: chrome/browser/media/router/media_sink.h

Issue 1475843002: [MR] Add description field to MediaSink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 23df7b1992ee95cdcbe57100b6b161b9d174dd46..44d2ed5848505834823911ac161c7a7ec4ddddc9 100644
--- a/chrome/browser/media/router/media_sink.h
+++ b/chrome/browser/media/router/media_sink.h
@@ -30,19 +30,26 @@ class MediaSink {
const MediaSink::Id& id() const { return sink_id_; }
const std::string& name() const { return name_; }
- MediaSink::IconType icon_type() const { return icon_type_; }
+ void set_description(const std::string& description) {
+ description_ = description;
+ }
+ const std::string& description() const { return description_; }
+ IconType icon_type() const { return icon_type_; }
bool Equals(const MediaSink& other) const;
- bool Empty() const;
private:
// Unique identifier for the MediaSink.
MediaSink::Id sink_id_;
+
// Descriptive name of the MediaSink.
- // Optional, can use an empty string if no sink name is available.
std::string name_;
+
+ // Optional description of the MediaSink.
+ std::string description_;
+
// The type of icon that corresponds with the MediaSink.
- MediaSink::IconType icon_type_;
+ IconType icon_type_;
};
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_router_type_converters_unittest.cc ('k') | chrome/browser/media/router/media_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698