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

Unified Diff: chrome/browser/media/router/media_source.cc

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_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_source.cc
diff --git a/chrome/browser/media/router/media_source.cc b/chrome/browser/media/router/media_source.cc
index 88fc2849cdef5e07b3c726bdef31a5d50ed573dc..6342188f96f5ff5d9848738d6304d8d06651ca11 100644
--- a/chrome/browser/media/router/media_source.cc
+++ b/chrome/browser/media/router/media_source.cc
@@ -8,14 +8,28 @@
namespace media_router {
-MediaSource::MediaSource(const std::string& source_id)
- : id_(source_id) {
+MediaSource::MediaSource(const MediaSourceId& source_id) : id_(source_id) {
+}
+
+MediaSource::MediaSource() {
}
MediaSource::~MediaSource() {}
-std::string MediaSource::id() const {
+MediaSourceId MediaSource::id() const {
return id_;
}
+bool MediaSource::Equals(const MediaSource& other) const {
+ return id_ == other.id();
+}
+
+bool MediaSource::Empty() const {
+ return id_.empty();
+}
+
+std::string MediaSource::ToString() const {
+ return "MediaSource[" + id_ + "]";
+}
+
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698