Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / page_navigator.cc
blobc919ee2d8ca0b5105497c83f003a0435f17fa5bc
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 int 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