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

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

Issue 2666873006: [Media Router] Convert to use typemaps for media_router.mojom. (Closed)
Patch Set: Created 3 years, 11 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
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 e12b6b16f55de968635b3955b6f2484c8dfe3d5e..c6c0cf106dd6b73c0bcfa4ea0342fea307549dbf 100644
--- a/chrome/browser/media/router/media_sink.h
+++ b/chrome/browser/media/router/media_sink.h
@@ -63,6 +63,12 @@ class MediaSink {
}
};
+ // Used by Mojo.
+ MediaSink();
+ void set_sink_id(const MediaSink::Id& sink_id) { sink_id_ = sink_id; }
+ void set_name(const std::string& name) { name_ = name; }
+ void set_icon_type(IconType icon_type) { icon_type_ = icon_type; }
+
private:
// Unique identifier for the MediaSink.
MediaSink::Id sink_id_;
@@ -77,7 +83,7 @@ class MediaSink {
std::string domain_;
// The type of icon that corresponds with the MediaSink.
- IconType icon_type_;
+ IconType icon_type_ = IconType::GENERIC;
};
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698