| 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/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/common/service_worker/service_worker_types.h" | 9 #include "content/common/service_worker/service_worker_types.h" |
| 10 #include "content/public/common/browser_side_navigation_policy.h" | 10 #include "content/public/common/browser_side_navigation_policy.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 132 } |
| 133 | 133 |
| 134 RequestNavigationParams::RequestNavigationParams() | 134 RequestNavigationParams::RequestNavigationParams() |
| 135 : is_overriding_user_agent(false), | 135 : is_overriding_user_agent(false), |
| 136 can_load_local_resources(false), | 136 can_load_local_resources(false), |
| 137 request_time(base::Time::Now()), | 137 request_time(base::Time::Now()), |
| 138 page_id(-1), | 138 page_id(-1), |
| 139 nav_entry_id(0), | 139 nav_entry_id(0), |
| 140 is_same_document_history_load(false), | 140 is_same_document_history_load(false), |
| 141 is_history_navigation_in_new_child(false), | 141 is_history_navigation_in_new_child(false), |
| 142 has_subtree_history_items(false), |
| 142 has_committed_real_load(false), | 143 has_committed_real_load(false), |
| 143 intended_as_new_entry(false), | 144 intended_as_new_entry(false), |
| 144 pending_history_list_offset(-1), | 145 pending_history_list_offset(-1), |
| 145 current_history_list_offset(-1), | 146 current_history_list_offset(-1), |
| 146 current_history_list_length(0), | 147 current_history_list_length(0), |
| 147 is_view_source(false), | 148 is_view_source(false), |
| 148 should_clear_history_list(false), | 149 should_clear_history_list(false), |
| 149 should_create_service_worker(false) {} | 150 should_create_service_worker(false) {} |
| 150 | 151 |
| 151 RequestNavigationParams::RequestNavigationParams( | 152 RequestNavigationParams::RequestNavigationParams( |
| 152 bool is_overriding_user_agent, | 153 bool is_overriding_user_agent, |
| 153 const std::vector<GURL>& redirects, | 154 const std::vector<GURL>& redirects, |
| 154 bool can_load_local_resources, | 155 bool can_load_local_resources, |
| 155 base::Time request_time, | 156 base::Time request_time, |
| 156 const PageState& page_state, | 157 const PageState& page_state, |
| 157 int32_t page_id, | 158 int32_t page_id, |
| 158 int nav_entry_id, | 159 int nav_entry_id, |
| 159 bool is_same_document_history_load, | 160 bool is_same_document_history_load, |
| 160 bool is_history_navigation_in_new_child, | 161 bool is_history_navigation_in_new_child, |
| 162 bool has_subtree_history_items, |
| 161 bool has_committed_real_load, | 163 bool has_committed_real_load, |
| 162 bool intended_as_new_entry, | 164 bool intended_as_new_entry, |
| 163 int pending_history_list_offset, | 165 int pending_history_list_offset, |
| 164 int current_history_list_offset, | 166 int current_history_list_offset, |
| 165 int current_history_list_length, | 167 int current_history_list_length, |
| 166 bool is_view_source, | 168 bool is_view_source, |
| 167 bool should_clear_history_list) | 169 bool should_clear_history_list) |
| 168 : is_overriding_user_agent(is_overriding_user_agent), | 170 : is_overriding_user_agent(is_overriding_user_agent), |
| 169 redirects(redirects), | 171 redirects(redirects), |
| 170 can_load_local_resources(can_load_local_resources), | 172 can_load_local_resources(can_load_local_resources), |
| 171 request_time(request_time), | 173 request_time(request_time), |
| 172 page_state(page_state), | 174 page_state(page_state), |
| 173 page_id(page_id), | 175 page_id(page_id), |
| 174 nav_entry_id(nav_entry_id), | 176 nav_entry_id(nav_entry_id), |
| 175 is_same_document_history_load(is_same_document_history_load), | 177 is_same_document_history_load(is_same_document_history_load), |
| 176 is_history_navigation_in_new_child(is_history_navigation_in_new_child), | 178 is_history_navigation_in_new_child(is_history_navigation_in_new_child), |
| 179 has_subtree_history_items(has_subtree_history_items), |
| 177 has_committed_real_load(has_committed_real_load), | 180 has_committed_real_load(has_committed_real_load), |
| 178 intended_as_new_entry(intended_as_new_entry), | 181 intended_as_new_entry(intended_as_new_entry), |
| 179 pending_history_list_offset(pending_history_list_offset), | 182 pending_history_list_offset(pending_history_list_offset), |
| 180 current_history_list_offset(current_history_list_offset), | 183 current_history_list_offset(current_history_list_offset), |
| 181 current_history_list_length(current_history_list_length), | 184 current_history_list_length(current_history_list_length), |
| 182 is_view_source(is_view_source), | 185 is_view_source(is_view_source), |
| 183 should_clear_history_list(should_clear_history_list), | 186 should_clear_history_list(should_clear_history_list), |
| 184 should_create_service_worker(false) {} | 187 should_create_service_worker(false) {} |
| 185 | 188 |
| 186 RequestNavigationParams::RequestNavigationParams( | 189 RequestNavigationParams::RequestNavigationParams( |
| 187 const RequestNavigationParams& other) = default; | 190 const RequestNavigationParams& other) = default; |
| 188 | 191 |
| 189 RequestNavigationParams::~RequestNavigationParams() { | 192 RequestNavigationParams::~RequestNavigationParams() { |
| 190 } | 193 } |
| 191 | 194 |
| 192 NavigationParams::NavigationParams( | 195 NavigationParams::NavigationParams( |
| 193 const CommonNavigationParams& common_params, | 196 const CommonNavigationParams& common_params, |
| 194 const StartNavigationParams& start_params, | 197 const StartNavigationParams& start_params, |
| 195 const RequestNavigationParams& request_params) | 198 const RequestNavigationParams& request_params) |
| 196 : common_params(common_params), | 199 : common_params(common_params), |
| 197 start_params(start_params), | 200 start_params(start_params), |
| 198 request_params(request_params) { | 201 request_params(request_params) { |
| 199 } | 202 } |
| 200 | 203 |
| 201 NavigationParams::~NavigationParams() { | 204 NavigationParams::~NavigationParams() { |
| 202 } | 205 } |
| 203 | 206 |
| 204 } // namespace content | 207 } // namespace content |
| OLD | NEW |