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

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

Issue 2386633003: [Media Router] Convert MediaRouter to use GURL for presentation URLs. (Closed)
Patch Set: Respond to dcheng@ comment Created 4 years, 2 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_source.h
diff --git a/chrome/browser/media/router/media_source.h b/chrome/browser/media/router/media_source.h
index 1f3abac3721c4033af56e01474435f28b053beb1..279edf0c49ff3c23dd29763ea4e5395cf1c88e03 100644
--- a/chrome/browser/media/router/media_source.h
+++ b/chrome/browser/media/router/media_source.h
@@ -12,14 +12,19 @@
#include "base/hash.h"
-namespace media_router {
+class GURL;
+// TODO(mfoltz): Right now this is a wrapper for std::string. Factor methods
+// from media_source_helper here so this object becomes useful; and don't just
+// pass it around by Id.
+namespace media_router {
class MediaSource {
public:
using Id = std::string;
explicit MediaSource(const MediaSource::Id& id);
+ explicit MediaSource(const GURL& presentation_url);
~MediaSource();
// Gets the ID of the media source.
« no previous file with comments | « chrome/browser/media/router/media_sinks_observer_unittest.cc ('k') | chrome/browser/media/router/media_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698