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
3 // found in the LICENSE file.
5 #include "components/navigation_interception/navigation_params.h"
7 namespace navigation_interception
{
9 NavigationParams::NavigationParams(const NavigationParams
& other
) {
13 NavigationParams::NavigationParams(const GURL
& url
,
14 const content::Referrer
& referrer
,
15 bool has_user_gesture
,
17 ui::PageTransition transition_type
,
19 bool is_external_protocol
,
23 has_user_gesture_(has_user_gesture
),
25 transition_type_(transition_type
),
26 is_redirect_(is_redirect
),
27 is_external_protocol_(is_external_protocol
),
28 is_main_frame_(is_main_frame
) {
31 void NavigationParams::operator=(const NavigationParams
& rhs
) {
35 void NavigationParams::Assign(const NavigationParams
& other
) {
37 referrer_
= other
.referrer();
38 has_user_gesture_
= other
.has_user_gesture();
39 is_post_
= other
.is_post();
40 transition_type_
= other
.transition_type();
41 is_redirect_
= other
.is_redirect();
42 is_external_protocol_
= other
.is_external_protocol();
43 is_main_frame_
= other
.is_main_frame();
46 } // namespace navigation_interception