Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / page_navigator.cc
blobf585501e9e46eb050e30313fa5dd5bb9420ea1c1
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"
7 namespace content {
9 OpenURLParams::OpenURLParams(
10 const GURL& url,
11 const Referrer& referrer,
12 WindowOpenDisposition disposition,
13 ui::PageTransition transition,
14 bool is_renderer_initiated)
15 : url(url),
16 referrer(referrer),
17 uses_post(false),
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(
27 const GURL& url,
28 const Referrer& referrer,
29 int64 frame_tree_node_id,
30 WindowOpenDisposition disposition,
31 ui::PageTransition transition,
32 bool is_renderer_initiated)
33 : url(url),
34 referrer(referrer),
35 uses_post(false),
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()
45 : uses_post(false),
46 frame_tree_node_id(-1),
47 disposition(UNKNOWN),
48 transition(ui::PAGE_TRANSITION_LINK),
49 is_renderer_initiated(false),
50 should_replace_current_entry(false),
51 user_gesture(true) {
54 OpenURLParams::~OpenURLParams() {
57 } // namespace content