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/media_source.h" | |
| 11 #include "chrome/browser/media/router/render_frame_host_id.h" | |
| 12 #include "url/gurl.h" | |
| 13 | |
| 14 namespace media_router { | |
| 15 | |
| 16 // Represents a presentation request made from a render frame. Contains the | |
| 17 // presentation URL of the request, and information on the originating frame. | |
| 18 class PresentationRequest { | |
| 19 public: | |
| 20 PresentationRequest(const RenderFrameHostId& render_frame_host_id, | |
| 21 const std::string& presentation_url, | |
| 22 const GURL& frame_url); | |
| 23 ~PresentationRequest(); | |
| 24 | |
| 25 bool Equals(const PresentationRequest& other) const; | |
|
mlamouri (slow - plz ping)
2015/10/27 18:42:51
I think you should use operator==.
imcheng
2015/10/27 20:50:14
We already established the use of an explicit |Equ
| |
| 26 | |
| 27 // Helper method to get the MediaSource for |presentation_url_|. | |
| 28 MediaSource GetMediaSource() const; | |
| 29 | |
| 30 const RenderFrameHostId& render_frame_host_id() const { | |
| 31 return render_frame_host_id_; | |
| 32 } | |
| 33 const std::string& presentation_url() const { return presentation_url_; } | |
| 34 const GURL& frame_url() const { return frame_url_; } | |
| 35 | |
| 36 private: | |
| 37 // ID of RenderFrameHost that initiated the request. | |
| 38 const RenderFrameHostId render_frame_host_id_; | |
| 39 | |
| 40 // URL of presentation. | |
| 41 const std::string presentation_url_; | |
| 42 | |
| 43 // URL of frame from which the request was initiated. | |
| 44 const GURL frame_url_; | |
| 45 }; | |
| 46 | |
| 47 } // namespace media_router | |
| 48 | |
| 49 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | |
| OLD | NEW |