OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/tab_contents/page_navigator.h" | 5 #include "content/browser/tab_contents/page_navigator.h" |
6 | 6 |
7 #include "content/common/page_transition_types.h" | 7 #include "content/public/common/page_transition_types.h" |
8 #include "webkit/glue/window_open_disposition.h" | 8 #include "webkit/glue/window_open_disposition.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 OpenURLParams::OpenURLParams( | 12 OpenURLParams::OpenURLParams( |
13 const GURL& url, | 13 const GURL& url, |
14 const GURL& referrer, | 14 const GURL& referrer, |
15 WindowOpenDisposition disposition, | 15 WindowOpenDisposition disposition, |
16 PageTransition::Type transition) | 16 content::PageTransition transition) |
17 : url(url), | 17 : url(url), |
18 referrer(referrer), | 18 referrer(referrer), |
19 disposition(disposition), | 19 disposition(disposition), |
20 transition(transition) { | 20 transition(transition) { |
21 } | 21 } |
22 | 22 |
23 OpenURLParams::OpenURLParams() : disposition(UNKNOWN), transition(0) { | 23 OpenURLParams::OpenURLParams() |
| 24 : disposition(UNKNOWN), |
| 25 transition(content::PageTransitionFromInt(0)) { |
24 } | 26 } |
25 | 27 |
26 OpenURLParams::~OpenURLParams() { | 28 OpenURLParams::~OpenURLParams() { |
27 } | 29 } |
28 | 30 |
OLD | NEW |