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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 #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 9
10 #include "chrome/browser/media/router/media_source.h" 10 #include "chrome/browser/media/router/media_source.h"
11 #include "chrome/browser/media/router/render_frame_host_id.h" 11 #include "chrome/browser/media/router/render_frame_host_id.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace media_router { 14 namespace media_router {
15 15
16 // Represents a presentation request made from a render frame. Contains the 16 // Represents a presentation request made from a render frame. Contains the
17 // presentation URL of the request, and information on the originating frame. 17 // presentation URL of the request, and information on the originating frame.
18 class PresentationRequest { 18 class PresentationRequest {
19 public: 19 public:
20 PresentationRequest(const RenderFrameHostId& render_frame_host_id, 20 PresentationRequest(const RenderFrameHostId& render_frame_host_id,
21 const std::string& presentation_url, 21 const std::string& presentation_url,
22 const GURL& frame_url); 22 const GURL& frame_url);
23 PresentationRequest(const PresentationRequest& other);
23 ~PresentationRequest(); 24 ~PresentationRequest();
24 25
25 bool Equals(const PresentationRequest& other) const; 26 bool Equals(const PresentationRequest& other) const;
26 27
27 // Helper method to get the MediaSource for |presentation_url_|. 28 // Helper method to get the MediaSource for |presentation_url_|.
28 MediaSource GetMediaSource() const; 29 MediaSource GetMediaSource() const;
29 30
30 const RenderFrameHostId& render_frame_host_id() const { 31 const RenderFrameHostId& render_frame_host_id() const {
31 return render_frame_host_id_; 32 return render_frame_host_id_;
32 } 33 }
33 const std::string& presentation_url() const { return presentation_url_; } 34 const std::string& presentation_url() const { return presentation_url_; }
34 const GURL& frame_url() const { return frame_url_; } 35 const GURL& frame_url() const { return frame_url_; }
35 36
36 private: 37 private:
37 // ID of RenderFrameHost that initiated the request. 38 // ID of RenderFrameHost that initiated the request.
38 const RenderFrameHostId render_frame_host_id_; 39 const RenderFrameHostId render_frame_host_id_;
39 40
40 // URL of presentation. 41 // URL of presentation.
41 const std::string presentation_url_; 42 const std::string presentation_url_;
42 43
43 // URL of frame from which the request was initiated. 44 // URL of frame from which the request was initiated.
44 const GURL frame_url_; 45 const GURL frame_url_;
45 }; 46 };
46 47
47 } // namespace media_router 48 } // namespace media_router
48 49
49 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_ 50 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698