summaryrefslogtreecommitdiffstats
path: root/content/public/browser/page_navigator.cc
blob: 029afbc7d7fe414bccc13cb39851d29483b099d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/public/browser/page_navigator.h"

namespace content {

OpenURLParams::OpenURLParams(
    const GURL& url,
    const Referrer& referrer,
    WindowOpenDisposition disposition,
    PageTransition transition,
    bool is_renderer_initiated)
    : url(url),
      referrer(referrer),
      source_frame_id(-1),
      disposition(disposition),
      transition(transition),
      is_renderer_initiated(is_renderer_initiated) {
}

OpenURLParams::OpenURLParams(
    const GURL& url,
    const Referrer& referrer,
    int64 source_frame_id,
    WindowOpenDisposition disposition,
    PageTransition transition,
    bool is_renderer_initiated)
    : url(url),
      referrer(referrer),
      source_frame_id(source_frame_id),
      disposition(disposition),
      transition(transition),
      is_renderer_initiated(is_renderer_initiated) {
}

OpenURLParams::OpenURLParams()
    : source_frame_id(-1),
      disposition(UNKNOWN),
      transition(PageTransitionFromInt(0)),
      is_renderer_initiated(false) {
}

OpenURLParams::~OpenURLParams() {
}

}  // namespace content