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

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

Issue 1436703002: Revert of [Presentation API / Media Router] Clean up default pres URL logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
(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 #include "chrome/browser/media/router/presentation_request.h"
6
7 #include "chrome/browser/media/router/media_source_helper.h"
8
9 namespace media_router {
10
11 PresentationRequest::PresentationRequest(
12 const RenderFrameHostId& render_frame_host_id,
13 const std::string& presentation_url,
14 const GURL& frame_url)
15 : render_frame_host_id_(render_frame_host_id),
16 presentation_url_(presentation_url),
17 frame_url_(frame_url) {}
18
19 PresentationRequest::~PresentationRequest() = default;
20
21 bool PresentationRequest::Equals(const PresentationRequest& other) const {
22 return render_frame_host_id_ == other.render_frame_host_id_ &&
23 presentation_url_ == other.presentation_url_ &&
24 frame_url_ == other.frame_url_;
25 }
26
27 MediaSource PresentationRequest::GetMediaSource() const {
28 return MediaSourceForPresentationUrl(presentation_url_);
29 }
30
31 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/presentation_request.h ('k') | chrome/browser/media/router/presentation_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698