Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "chrome/browser/media/router/render_frame_host_id.h" | |
| 11 #include "url/gurl.h" | |
| 12 | |
| 13 namespace media_router { | |
| 14 | |
| 15 // Represents a presentation request made from a render frame. Contains the | |
| 16 // presentation URL of the request, and information on the originating frame. | |
| 17 class PresentationRequest { | |
| 18 public: | |
| 19 PresentationRequest(const RenderFrameHostId& render_frame_host_id, | |
| 20 const std::string& presentation_url, | |
| 21 const GURL& frame_url); | |
| 22 ~PresentationRequest(); | |
| 23 | |
| 24 bool Equals(const PresentationRequest& other) const; | |
| 25 | |
| 26 const RenderFrameHostId& render_frame_host_id() const { | |
| 27 return render_frame_host_id_; | |
| 28 } | |
| 29 const std::string& presentation_url() const { return presentation_url_; } | |
| 30 const GURL& frame_url() const { return frame_url_; } | |
| 31 | |
| 32 private: | |
| 33 // ID of RenderFrameHost that initiated the request. | |
| 34 const RenderFrameHostId render_frame_host_id_; | |
| 35 | |
| 36 // URL of default presentation. | |
|
mark a. foltz
2015/10/20 20:15:25
Can this be any presentation URL?
imcheng
2015/10/24 00:41:19
Yes. Removed "default".
| |
| 37 const std::string presentation_url_; | |
| 38 | |
| 39 // URL of frame from which the request was initiated. | |
| 40 const GURL frame_url_; | |
|
mark a. foltz
2015/10/20 20:15:25
What is this used for? The frame may have no src=
imcheng
2015/10/24 00:41:19
This is for matching the the default request that
| |
| 41 }; | |
| 42 | |
| 43 } // namespace media_router | |
| 44 | |
| 45 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | |
| OLD | NEW |