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

Unified Diff: chrome/browser/ui/webui/media_router/query_result_manager.h

Issue 2678123003: Revert of Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Created 3 years, 10 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/ui/webui/media_router/query_result_manager.h
diff --git a/chrome/browser/ui/webui/media_router/query_result_manager.h b/chrome/browser/ui/webui/media_router/query_result_manager.h
index da4681fc75415d7b2c102d7bdda2e12944c98bf3..553c74376765e30b4cacee959979b7585e3b9605 100644
--- a/chrome/browser/ui/webui/media_router/query_result_manager.h
+++ b/chrome/browser/ui/webui/media_router/query_result_manager.h
@@ -21,9 +21,7 @@
#include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
#include "chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h"
-namespace url {
-class Origin;
-} // namespace url
+class GURL;
namespace media_router {
@@ -38,7 +36,7 @@
//
// Typical use:
//
-// url::Origin origin{GURL("https://origin.com")};
+// GURL origin("https://origin.com");
// QueryResultManager::Observer* observer = ...;
// QueryResultManager result_manager(router);
// result_manager.AddObserver(observer);
@@ -91,7 +89,7 @@
// with another cast mode, no new queries are begun.
void SetSourcesForCastMode(MediaCastMode cast_mode,
const std::vector<MediaSource>& sources,
- const url::Origin& origin);
+ const GURL& origin);
// Stops notifying observers for |cast_mode|, and removes it from the set of
// supported cast modes.
@@ -129,7 +127,7 @@
// doesn't already have an associated observer.
void AddObserversForCastMode(MediaCastMode cast_mode,
const std::vector<MediaSource>& sources,
- const url::Origin& origin);
+ const GURL& origin);
// Modifies the set of sinks compatible with |cast_mode| and |source|
// to |new_sinks|.

Powered by Google App Engine
This is Rietveld 408576698