OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/media/router/media_source.h" | |
12 #include "chrome/browser/media/router/render_frame_host_id.h" | 11 #include "chrome/browser/media/router/render_frame_host_id.h" |
| 12 #include "chrome/common/media_router/media_source.h" |
13 #include "url/origin.h" | 13 #include "url/origin.h" |
14 | 14 |
15 namespace media_router { | 15 namespace media_router { |
16 | 16 |
17 // Represents a presentation request made from a render frame. Contains the | 17 // Represents a presentation request made from a render frame. Contains the |
18 // presentation URL of the request, and information on the originating frame. | 18 // presentation URL of the request, and information on the originating frame. |
| 19 // TODO(crbug.com/708209): Move this class to content/browser/. |
19 class PresentationRequest { | 20 class PresentationRequest { |
20 public: | 21 public: |
21 PresentationRequest(const RenderFrameHostId& render_frame_host_id, | 22 PresentationRequest(const RenderFrameHostId& render_frame_host_id, |
22 const std::vector<GURL>& presentation_urls, | 23 const std::vector<GURL>& presentation_urls, |
23 const url::Origin& frame_origin); | 24 const url::Origin& frame_origin); |
24 PresentationRequest(const PresentationRequest& other); | 25 PresentationRequest(const PresentationRequest& other); |
25 ~PresentationRequest(); | 26 ~PresentationRequest(); |
26 | 27 |
27 bool Equals(const PresentationRequest& other) const; | 28 bool Equals(const PresentationRequest& other) const; |
28 | 29 |
(...skipping 15 matching lines...) Expand all Loading... |
44 // URLs of presentation. | 45 // URLs of presentation. |
45 const std::vector<GURL> presentation_urls_; | 46 const std::vector<GURL> presentation_urls_; |
46 | 47 |
47 // Origin of frame from which the request was initiated. | 48 // Origin of frame from which the request was initiated. |
48 const url::Origin frame_origin_; | 49 const url::Origin frame_origin_; |
49 }; | 50 }; |
50 | 51 |
51 } // namespace media_router | 52 } // namespace media_router |
52 | 53 |
53 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ | 54 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ |
OLD | NEW |