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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 has_committed_real_load(false), | 141 has_committed_real_load(false), |
142 intended_as_new_entry(false), | 142 intended_as_new_entry(false), |
143 pending_history_list_offset(-1), | 143 pending_history_list_offset(-1), |
144 current_history_list_offset(-1), | 144 current_history_list_offset(-1), |
145 current_history_list_length(0), | 145 current_history_list_length(0), |
146 is_view_source(false), | 146 is_view_source(false), |
147 should_clear_history_list(false), | 147 should_clear_history_list(false), |
148 should_create_service_worker(false), | 148 should_create_service_worker(false) {} |
149 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | |
150 | 149 |
151 RequestNavigationParams::RequestNavigationParams( | 150 RequestNavigationParams::RequestNavigationParams( |
152 bool is_overriding_user_agent, | 151 bool is_overriding_user_agent, |
153 const std::vector<GURL>& redirects, | 152 const std::vector<GURL>& redirects, |
154 bool can_load_local_resources, | 153 bool can_load_local_resources, |
155 base::Time request_time, | 154 base::Time request_time, |
156 const PageState& page_state, | 155 const PageState& page_state, |
157 int32_t page_id, | 156 int32_t page_id, |
158 int nav_entry_id, | 157 int nav_entry_id, |
159 bool is_same_document_history_load, | 158 bool is_same_document_history_load, |
(...skipping 12 matching lines...) Expand all Loading... |
172 page_id(page_id), | 171 page_id(page_id), |
173 nav_entry_id(nav_entry_id), | 172 nav_entry_id(nav_entry_id), |
174 is_same_document_history_load(is_same_document_history_load), | 173 is_same_document_history_load(is_same_document_history_load), |
175 has_committed_real_load(has_committed_real_load), | 174 has_committed_real_load(has_committed_real_load), |
176 intended_as_new_entry(intended_as_new_entry), | 175 intended_as_new_entry(intended_as_new_entry), |
177 pending_history_list_offset(pending_history_list_offset), | 176 pending_history_list_offset(pending_history_list_offset), |
178 current_history_list_offset(current_history_list_offset), | 177 current_history_list_offset(current_history_list_offset), |
179 current_history_list_length(current_history_list_length), | 178 current_history_list_length(current_history_list_length), |
180 is_view_source(is_view_source), | 179 is_view_source(is_view_source), |
181 should_clear_history_list(should_clear_history_list), | 180 should_clear_history_list(should_clear_history_list), |
182 should_create_service_worker(false), | 181 should_create_service_worker(false) {} |
183 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} | |
184 | 182 |
185 RequestNavigationParams::RequestNavigationParams( | 183 RequestNavigationParams::RequestNavigationParams( |
186 const RequestNavigationParams& other) = default; | 184 const RequestNavigationParams& other) = default; |
187 | 185 |
188 RequestNavigationParams::~RequestNavigationParams() { | 186 RequestNavigationParams::~RequestNavigationParams() { |
189 } | 187 } |
190 | 188 |
191 NavigationParams::NavigationParams( | 189 NavigationParams::NavigationParams( |
192 const CommonNavigationParams& common_params, | 190 const CommonNavigationParams& common_params, |
193 const StartNavigationParams& start_params, | 191 const StartNavigationParams& start_params, |
194 const RequestNavigationParams& request_params) | 192 const RequestNavigationParams& request_params) |
195 : common_params(common_params), | 193 : common_params(common_params), |
196 start_params(start_params), | 194 start_params(start_params), |
197 request_params(request_params) { | 195 request_params(request_params) { |
198 } | 196 } |
199 | 197 |
200 NavigationParams::~NavigationParams() { | 198 NavigationParams::~NavigationParams() { |
201 } | 199 } |
202 | 200 |
203 } // namespace content | 201 } // namespace content |
OLD | NEW |