| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/common/navigation_params.h" | 5 #include "content/common/navigation_params.h" |
| 6 | 6 |
| 7 #include "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 CommonNavigationParams::CommonNavigationParams() | 11 CommonNavigationParams::CommonNavigationParams() |
| 12 : transition(ui::PAGE_TRANSITION_LINK), | 12 : transition(ui::PAGE_TRANSITION_LINK), |
| 13 navigation_type(FrameMsg_Navigate_Type::NORMAL), | 13 navigation_type(FrameMsg_Navigate_Type::NORMAL), |
| 14 allow_download(true), | 14 allow_download(true), |
| 15 report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT) { | 15 report_type(FrameMsg_UILoadMetricsReportType::NO_REPORT) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 CommonNavigationParams::CommonNavigationParams( | 18 CommonNavigationParams::CommonNavigationParams( |
| 19 const GURL& url, | 19 const GURL& url, |
| 20 const Referrer& referrer, | 20 const Referrer& referrer, |
| 21 ui::PageTransition transition, | 21 ui::PageTransition transition, |
| 22 FrameMsg_Navigate_Type::Value navigation_type, | 22 FrameMsg_Navigate_Type::Value navigation_type, |
| 23 bool allow_download, | 23 bool allow_download, |
| 24 base::TimeTicks ui_timestamp, | 24 base::TimeTicks ui_timestamp, |
| 25 FrameMsg_UILoadMetricsReportType::Value report_type, | 25 FrameMsg_UILoadMetricsReportType::Value report_type, |
| 26 const GURL& base_url_for_data_url, | 26 const GURL& base_url_for_data_url, |
| 27 const GURL& history_url_for_data_url) | 27 const GURL& history_url_for_data_url, |
| 28 bool lock_history_list) |
| 28 : url(url), | 29 : url(url), |
| 29 referrer(referrer), | 30 referrer(referrer), |
| 30 transition(transition), | 31 transition(transition), |
| 31 navigation_type(navigation_type), | 32 navigation_type(navigation_type), |
| 32 allow_download(allow_download), | 33 allow_download(allow_download), |
| 33 ui_timestamp(ui_timestamp), | 34 ui_timestamp(ui_timestamp), |
| 34 report_type(report_type), | 35 report_type(report_type), |
| 35 base_url_for_data_url(base_url_for_data_url), | 36 base_url_for_data_url(base_url_for_data_url), |
| 36 history_url_for_data_url(history_url_for_data_url) { | 37 history_url_for_data_url(history_url_for_data_url), |
| 38 lock_history_list(lock_history_list) { |
| 37 } | 39 } |
| 38 | 40 |
| 39 CommonNavigationParams::~CommonNavigationParams() { | 41 CommonNavigationParams::~CommonNavigationParams() { |
| 40 } | 42 } |
| 41 | 43 |
| 42 BeginNavigationParams::BeginNavigationParams() | 44 BeginNavigationParams::BeginNavigationParams() |
| 43 : load_flags(0), has_user_gesture(false) { | 45 : load_flags(0), has_user_gesture(false) { |
| 44 } | 46 } |
| 45 | 47 |
| 46 BeginNavigationParams::BeginNavigationParams(std::string method, | 48 BeginNavigationParams::BeginNavigationParams(std::string method, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 const RequestNavigationParams& request_params) | 135 const RequestNavigationParams& request_params) |
| 134 : common_params(common_params), | 136 : common_params(common_params), |
| 135 start_params(start_params), | 137 start_params(start_params), |
| 136 request_params(request_params) { | 138 request_params(request_params) { |
| 137 } | 139 } |
| 138 | 140 |
| 139 NavigationParams::~NavigationParams() { | 141 NavigationParams::~NavigationParams() { |
| 140 } | 142 } |
| 141 | 143 |
| 142 } // namespace content | 144 } // namespace content |
| OLD | NEW |