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

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

Issue 1076973002: [Media Router] Reland: MediaRouter interfaces with stub implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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
« no previous file with comments | « chrome/browser/media/router/media_routes_observer.cc ('k') | chrome/browser/media/router/media_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/media/router/media_routes_observer.cc ('k') | chrome/browser/media/router/media_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698