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(
15 const content::Referrer
& referrer
,
16 bool has_user_gesture
,
18 content::PageTransition transition_type
,
22 has_user_gesture_(has_user_gesture
),
24 transition_type_(transition_type
),
25 is_redirect_(is_redirect
) {
28 void NavigationParams::operator=(const NavigationParams
& rhs
) {
32 void NavigationParams::Assign(const NavigationParams
& other
) {
34 referrer_
= other
.referrer();
35 has_user_gesture_
= other
.has_user_gesture();
36 is_post_
= other
.is_post();
37 transition_type_
= other
.transition_type();
38 is_redirect_
= other
.is_redirect();
41 } // namespace navigation_interception