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

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

Issue 884473004: Add is_external_protocol to NavigationParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 5 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 (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 #include "components/navigation_interception/navigation_params.h" 5 #include "components/navigation_interception/navigation_params.h"
6 6
7 namespace navigation_interception { 7 namespace navigation_interception {
8 8
9 NavigationParams::NavigationParams(const NavigationParams& other) { 9 NavigationParams::NavigationParams(const NavigationParams& other) {
10 Assign(other); 10 Assign(other);
11 } 11 }
12 12
13 NavigationParams::NavigationParams( 13 NavigationParams::NavigationParams(const GURL& url,
14 const GURL& url, 14 const content::Referrer& referrer,
15 const content::Referrer& referrer, 15 bool has_user_gesture,
16 bool has_user_gesture, 16 bool is_post,
17 bool is_post, 17 ui::PageTransition transition_type,
18 ui::PageTransition transition_type, 18 bool is_redirect,
19 bool is_redirect) 19 bool is_external_protocol)
20 : url_(url), 20 : url_(url),
21 referrer_(referrer), 21 referrer_(referrer),
22 has_user_gesture_(has_user_gesture), 22 has_user_gesture_(has_user_gesture),
23 is_post_(is_post), 23 is_post_(is_post),
24 transition_type_(transition_type), 24 transition_type_(transition_type),
25 is_redirect_(is_redirect) { 25 is_redirect_(is_redirect),
26 is_external_protocol_(is_external_protocol) {
26 } 27 }
27 28
28 void NavigationParams::operator=(const NavigationParams& rhs) { 29 void NavigationParams::operator=(const NavigationParams& rhs) {
29 Assign(rhs); 30 Assign(rhs);
30 } 31 }
31 32
32 void NavigationParams::Assign(const NavigationParams& other) { 33 void NavigationParams::Assign(const NavigationParams& other) {
33 url_ = other.url(); 34 url_ = other.url();
34 referrer_ = other.referrer(); 35 referrer_ = other.referrer();
35 has_user_gesture_ = other.has_user_gesture(); 36 has_user_gesture_ = other.has_user_gesture();
36 is_post_ = other.is_post(); 37 is_post_ = other.is_post();
37 transition_type_ = other.transition_type(); 38 transition_type_ = other.transition_type();
38 is_redirect_ = other.is_redirect(); 39 is_redirect_ = other.is_redirect();
40 is_external_protocol_ = other.is_external_protocol();
39 } 41 }
40 42
41 } // namespace navigation_interception 43 } // namespace navigation_interception
42 44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698