• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "content/public/browser/page_navigator.h"
6 
7 namespace content {
8 
OpenURLParams(const GURL & url,const Referrer & referrer,WindowOpenDisposition disposition,ui::PageTransition transition,bool is_renderer_initiated)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) {
24 }
25 
OpenURLParams(const GURL & url,const Referrer & referrer,int64 frame_tree_node_id,WindowOpenDisposition disposition,ui::PageTransition transition,bool 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) {
42 }
43 
OpenURLParams()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) {
52 }
53 
~OpenURLParams()54 OpenURLParams::~OpenURLParams() {
55 }
56 
57 }  // namespace content
58