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

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

Issue 1406013003: [Presentation API / Media Router] Clean up default pres URL logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove s 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 #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/11/06 14:46:43 For the record, using Equals() is not a common pat
imcheng 2015/11/07 02:00:46 Acknowledged.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698