| 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 #include "chrome/browser/media/router/presentation_request.h" | 5 #include "chrome/browser/media/router/presentation_request.h" |
| 6 | 6 |
| 7 #include "chrome/browser/media/router/media_source_helper.h" | 7 #include "chrome/common/media_router/media_source_helper.h" |
| 8 | 8 |
| 9 namespace media_router { | 9 namespace media_router { |
| 10 | 10 |
| 11 PresentationRequest::PresentationRequest( | 11 PresentationRequest::PresentationRequest( |
| 12 const RenderFrameHostId& render_frame_host_id, | 12 const RenderFrameHostId& render_frame_host_id, |
| 13 const std::vector<GURL>& presentation_urls, | 13 const std::vector<GURL>& presentation_urls, |
| 14 const url::Origin& frame_origin) | 14 const url::Origin& frame_origin) |
| 15 : render_frame_host_id_(render_frame_host_id), | 15 : render_frame_host_id_(render_frame_host_id), |
| 16 presentation_urls_(presentation_urls), | 16 presentation_urls_(presentation_urls), |
| 17 frame_origin_(frame_origin) { | 17 frame_origin_(frame_origin) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 std::vector<MediaSource> PresentationRequest::GetMediaSources() const { | 33 std::vector<MediaSource> PresentationRequest::GetMediaSources() const { |
| 34 std::vector<MediaSource> sources; | 34 std::vector<MediaSource> sources; |
| 35 for (const auto& presentation_url : presentation_urls_) | 35 for (const auto& presentation_url : presentation_urls_) |
| 36 sources.push_back(MediaSourceForPresentationUrl(presentation_url)); | 36 sources.push_back(MediaSourceForPresentationUrl(presentation_url)); |
| 37 return sources; | 37 return sources; |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace media_router | 40 } // namespace media_router |
| OLD | NEW |