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

Unified Diff: chrome/browser/media/router/presentation_request.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/presentation_request.h
diff --git a/chrome/browser/media/router/presentation_request.h b/chrome/browser/media/router/presentation_request.h
index a8580285a38bcbd200c323f13226668aedf8fbb4..9a3009a52b26163aa0678b0856b48ea27c2b5a71 100644
--- a/chrome/browser/media/router/presentation_request.h
+++ b/chrome/browser/media/router/presentation_request.h
@@ -19,7 +19,7 @@ namespace media_router {
class PresentationRequest {
public:
PresentationRequest(const RenderFrameHostId& render_frame_host_id,
- const std::vector<std::string>& presentation_urls,
+ const std::vector<GURL>& presentation_urls,
const GURL& frame_url);
PresentationRequest(const PresentationRequest& other);
~PresentationRequest();
@@ -33,7 +33,7 @@ class PresentationRequest {
return render_frame_host_id_;
}
// TODO(crbug.com/627655): Use multiple URLs.
- const std::string& presentation_url() const { return presentation_urls_[0]; }
+ const GURL& presentation_url() const { return presentation_urls_[0]; }
const GURL& frame_url() const { return frame_url_; }
private:
@@ -41,7 +41,7 @@ class PresentationRequest {
const RenderFrameHostId render_frame_host_id_;
// URLs of presentation.
- const std::vector<std::string> presentation_urls_;
+ const std::vector<GURL> presentation_urls_;
// URL of frame from which the request was initiated.
const GURL frame_url_;

Powered by Google App Engine
This is Rietveld 408576698