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

Unified Diff: chrome/browser/media/router/presentation_request.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/media/router/presentation_request.h
diff --git a/chrome/browser/media/router/presentation_request.h b/chrome/browser/media/router/presentation_request.h
index e3056738e50eebe62b8b32d9a36e07344e6db9c2..1879ec1321576be25101856fd138f6f1ae1b4e59 100644
--- a/chrome/browser/media/router/presentation_request.h
+++ b/chrome/browser/media/router/presentation_request.h
@@ -10,7 +10,7 @@
#include "chrome/browser/media/router/media_source.h"
#include "chrome/browser/media/router/render_frame_host_id.h"
-#include "url/origin.h"
+#include "url/gurl.h"
namespace media_router {
@@ -20,7 +20,7 @@
public:
PresentationRequest(const RenderFrameHostId& render_frame_host_id,
const std::vector<GURL>& presentation_urls,
- const url::Origin& frame_origin);
+ const GURL& frame_url);
PresentationRequest(const PresentationRequest& other);
~PresentationRequest();
@@ -35,7 +35,7 @@
const std::vector<GURL>& presentation_urls() const {
return presentation_urls_;
}
- const url::Origin& frame_origin() const { return frame_origin_; }
+ const GURL& frame_url() const { return frame_url_; }
private:
// ID of RenderFrameHost that initiated the request.
@@ -44,8 +44,10 @@
// URLs of presentation.
const std::vector<GURL> presentation_urls_;
- // Origin of frame from which the request was initiated.
- const url::Origin frame_origin_;
+ // URL of frame from which the request was initiated.
+ // TODO(crbug.com/632623): Convert this to url::Origin as only the origin or
+ // hostname is used.
+ const GURL frame_url_;
};
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698