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

Side by Side Diff: chrome/browser/media/router/presentation_request.cc

Issue 1693963003: Pass origin to StartObservingMediaSinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Marks Review Fixes with URL changes Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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/browser/media/router/media_source_helper.h"
8 8
9 namespace media_router { 9 namespace media_router {
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 PresentationRequest::~PresentationRequest() = default; 22 PresentationRequest::~PresentationRequest() = default;
23 23
24 bool PresentationRequest::Equals(const PresentationRequest& other) const { 24 bool PresentationRequest::Equals(const PresentationRequest& other) const {
25 return render_frame_host_id_ == other.render_frame_host_id_ && 25 return render_frame_host_id_ == other.render_frame_host_id_ &&
26 presentation_url_ == other.presentation_url_ && 26 presentation_url_ == other.presentation_url_ &&
27 frame_url_ == other.frame_url_; 27 frame_url_ == other.frame_url_;
28 } 28 }
29 29
30 MediaSource PresentationRequest::GetMediaSource() const { 30 MediaSource PresentationRequest::GetMediaSource() const {
31 return MediaSourceForPresentationUrl(presentation_url_); 31 return MediaSourceForPresentationUrl(presentation_url_, frame_url_.spec());
32 } 32 }
33 33
34 } // namespace media_router 34 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698