1 // Copyright (c) 2012 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 "content/public/browser/page_navigator.h"
9 OpenURLParams::OpenURLParams(
11 const Referrer
& referrer
,
12 WindowOpenDisposition disposition
,
13 PageTransition transition
,
14 bool is_renderer_initiated
)
18 frame_tree_node_id(-1),
19 disposition(disposition
),
20 transition(transition
),
21 is_renderer_initiated(is_renderer_initiated
),
22 should_replace_current_entry(false),
23 user_gesture(!is_renderer_initiated
) {
26 OpenURLParams::OpenURLParams(
28 const Referrer
& referrer
,
29 int64 frame_tree_node_id
,
30 WindowOpenDisposition disposition
,
31 PageTransition transition
,
32 bool is_renderer_initiated
)
36 frame_tree_node_id(frame_tree_node_id
),
37 disposition(disposition
),
38 transition(transition
),
39 is_renderer_initiated(is_renderer_initiated
),
40 should_replace_current_entry(false),
41 user_gesture(!is_renderer_initiated
) {
44 OpenURLParams::OpenURLParams()
46 frame_tree_node_id(-1),
48 transition(PageTransitionFromInt(0)),
49 is_renderer_initiated(false),
50 should_replace_current_entry(false),
54 OpenURLParams::~OpenURLParams() {
57 } // namespace content