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

Side by Side Diff: components/navigation_interception/navigation_params.h

Issue 2759723002: Update the assignment operator (Closed)
Patch Set: fix compile fail Created 3 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
« no previous file with comments | « no previous file | components/navigation_interception/navigation_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_ 5 #ifndef COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_
6 #define COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_ 6 #define COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_
7 7
8 #include "content/public/common/referrer.h" 8 #include "content/public/common/referrer.h"
9 #include "ui/base/page_transition_types.h" 9 #include "ui/base/page_transition_types.h"
10 #include "ui/base/page_transition_types.h" 10 #include "ui/base/page_transition_types.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace navigation_interception { 13 namespace navigation_interception {
14 14
15 class NavigationParams { 15 class NavigationParams {
16 public: 16 public:
17 NavigationParams(const GURL& url, 17 NavigationParams(const GURL& url,
18 const content::Referrer& referrer, 18 const content::Referrer& referrer,
19 bool has_user_gesture, 19 bool has_user_gesture,
20 bool is_post, 20 bool is_post,
21 ui::PageTransition page_transition_type, 21 ui::PageTransition page_transition_type,
22 bool is_redirect, 22 bool is_redirect,
23 bool is_external_protocol, 23 bool is_external_protocol,
24 bool is_main_frame, 24 bool is_main_frame,
25 const GURL& base_url_for_data_url); 25 const GURL& base_url_for_data_url);
26 NavigationParams(const NavigationParams& other); 26 NavigationParams(const NavigationParams&);
27 void operator=(const NavigationParams& rhs); 27 NavigationParams& operator=(const NavigationParams&) = delete;
28 28
29 const GURL& url() const { return url_; } 29 const GURL& url() const { return url_; }
30 GURL& url() { return url_; } 30 GURL& url() { return url_; }
31 const content::Referrer& referrer() const { return referrer_; } 31 const content::Referrer& referrer() const { return referrer_; }
32 bool has_user_gesture() const { return has_user_gesture_; } 32 bool has_user_gesture() const { return has_user_gesture_; }
33 bool is_post() const { return is_post_; } 33 bool is_post() const { return is_post_; }
34 ui::PageTransition transition_type() const { return transition_type_; } 34 ui::PageTransition transition_type() const { return transition_type_; }
35 bool is_redirect() const { return is_redirect_; } 35 bool is_redirect() const { return is_redirect_; }
36 bool is_external_protocol() const { return is_external_protocol_; } 36 bool is_external_protocol() const { return is_external_protocol_; }
37 bool is_main_frame() const { return is_main_frame_; } 37 bool is_main_frame() const { return is_main_frame_; }
38 const GURL& base_url_for_data_url() const { return base_url_for_data_url_; } 38 const GURL& base_url_for_data_url() const { return base_url_for_data_url_; }
39 39
40 private: 40 private:
41 void Assign(const NavigationParams& other);
42 41
43 GURL url_; 42 GURL url_;
44 content::Referrer referrer_; 43 content::Referrer referrer_;
45 bool has_user_gesture_; 44 bool has_user_gesture_;
46 bool is_post_; 45 bool is_post_;
47 ui::PageTransition transition_type_; 46 ui::PageTransition transition_type_;
48 bool is_redirect_; 47 bool is_redirect_;
49 bool is_external_protocol_; 48 bool is_external_protocol_;
50 bool is_main_frame_; 49 bool is_main_frame_;
51 GURL base_url_for_data_url_; 50 GURL base_url_for_data_url_;
52 }; 51 };
53 52
54 } // namespace navigation_interception 53 } // namespace navigation_interception
55 54
56 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_ 55 #endif // COMPONENTS_NAVIGATION_INTERCEPTION_NAVIGATION_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | components/navigation_interception/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698