| 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/public/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 content::PageTransition transition) | 16 content::PageTransition transition, |
| 17 bool is_renderer_initiated) |
| 17 : url(url), | 18 : url(url), |
| 18 referrer(referrer), | 19 referrer(referrer), |
| 19 disposition(disposition), | 20 disposition(disposition), |
| 20 transition(transition) { | 21 transition(transition), |
| 22 is_renderer_initiated(is_renderer_initiated) { |
| 21 } | 23 } |
| 22 | 24 |
| 23 OpenURLParams::OpenURLParams() | 25 OpenURLParams::OpenURLParams() |
| 24 : disposition(UNKNOWN), | 26 : disposition(UNKNOWN), |
| 25 transition(content::PageTransitionFromInt(0)) { | 27 transition(content::PageTransitionFromInt(0)), |
| 28 is_renderer_initiated(false) { |
| 26 } | 29 } |
| 27 | 30 |
| 28 OpenURLParams::~OpenURLParams() { | 31 OpenURLParams::~OpenURLParams() { |
| 29 } | 32 } |
| 30 | 33 |
| OLD | NEW |