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

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

Issue 2627463003: Convert MediaRouter mojom apis to intake url::Origin objects instead of strings (Closed)
Patch Set: Add missing dependency for extensions_renderer_resources target 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 1879ec1321576be25101856fd138f6f1ae1b4e59..e3056738e50eebe62b8b32d9a36e07344e6db9c2 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/gurl.h"
+#include "url/origin.h"
namespace media_router {
@@ -20,7 +20,7 @@ class PresentationRequest {
public:
PresentationRequest(const RenderFrameHostId& render_frame_host_id,
const std::vector<GURL>& presentation_urls,
- const GURL& frame_url);
+ const url::Origin& frame_origin);
PresentationRequest(const PresentationRequest& other);
~PresentationRequest();
@@ -35,7 +35,7 @@ class PresentationRequest {
const std::vector<GURL>& presentation_urls() const {
return presentation_urls_;
}
- const GURL& frame_url() const { return frame_url_; }
+ const url::Origin& frame_origin() const { return frame_origin_; }
private:
// ID of RenderFrameHost that initiated the request.
@@ -44,10 +44,8 @@ class PresentationRequest {
// URLs of presentation.
const std::vector<GURL> presentation_urls_;
- // 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_;
+ // Origin of frame from which the request was initiated.
+ const url::Origin frame_origin_;
};
} // namespace media_router

Powered by Google App Engine
This is Rietveld 408576698