Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/common/navigation_params.cc

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Calling FindReadyRegistartionForDocument Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 page_id(-1), 137 page_id(-1),
138 nav_entry_id(0), 138 nav_entry_id(0),
139 is_same_document_history_load(false), 139 is_same_document_history_load(false),
140 has_committed_real_load(false), 140 has_committed_real_load(false),
141 intended_as_new_entry(false), 141 intended_as_new_entry(false),
142 pending_history_list_offset(-1), 142 pending_history_list_offset(-1),
143 current_history_list_offset(-1), 143 current_history_list_offset(-1),
144 current_history_list_length(0), 144 current_history_list_length(0),
145 is_view_source(false), 145 is_view_source(false),
146 should_clear_history_list(false), 146 should_clear_history_list(false),
147 should_create_service_worker(false), 147 should_create_service_worker(false) {}
148 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
149 148
150 RequestNavigationParams::RequestNavigationParams( 149 RequestNavigationParams::RequestNavigationParams(
151 bool is_overriding_user_agent, 150 bool is_overriding_user_agent,
152 const std::vector<GURL>& redirects, 151 const std::vector<GURL>& redirects,
153 bool can_load_local_resources, 152 bool can_load_local_resources,
154 base::Time request_time, 153 base::Time request_time,
155 const PageState& page_state, 154 const PageState& page_state,
156 int32_t page_id, 155 int32_t page_id,
157 int nav_entry_id, 156 int nav_entry_id,
158 bool is_same_document_history_load, 157 bool is_same_document_history_load,
(...skipping 12 matching lines...) Expand all
171 page_id(page_id), 170 page_id(page_id),
172 nav_entry_id(nav_entry_id), 171 nav_entry_id(nav_entry_id),
173 is_same_document_history_load(is_same_document_history_load), 172 is_same_document_history_load(is_same_document_history_load),
174 has_committed_real_load(has_committed_real_load), 173 has_committed_real_load(has_committed_real_load),
175 intended_as_new_entry(intended_as_new_entry), 174 intended_as_new_entry(intended_as_new_entry),
176 pending_history_list_offset(pending_history_list_offset), 175 pending_history_list_offset(pending_history_list_offset),
177 current_history_list_offset(current_history_list_offset), 176 current_history_list_offset(current_history_list_offset),
178 current_history_list_length(current_history_list_length), 177 current_history_list_length(current_history_list_length),
179 is_view_source(is_view_source), 178 is_view_source(is_view_source),
180 should_clear_history_list(should_clear_history_list), 179 should_clear_history_list(should_clear_history_list),
181 should_create_service_worker(false), 180 should_create_service_worker(false) {}
182 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
183 181
184 RequestNavigationParams::RequestNavigationParams( 182 RequestNavigationParams::RequestNavigationParams(
185 const RequestNavigationParams& other) = default; 183 const RequestNavigationParams& other) = default;
186 184
187 RequestNavigationParams::~RequestNavigationParams() { 185 RequestNavigationParams::~RequestNavigationParams() {
188 } 186 }
189 187
190 NavigationParams::NavigationParams( 188 NavigationParams::NavigationParams(
191 const CommonNavigationParams& common_params, 189 const CommonNavigationParams& common_params,
192 const StartNavigationParams& start_params, 190 const StartNavigationParams& start_params,
193 const RequestNavigationParams& request_params) 191 const RequestNavigationParams& request_params)
194 : common_params(common_params), 192 : common_params(common_params),
195 start_params(start_params), 193 start_params(start_params),
196 request_params(request_params) { 194 request_params(request_params) {
197 } 195 }
198 196
199 NavigationParams::~NavigationParams() { 197 NavigationParams::~NavigationParams() {
200 } 198 }
201 199
202 } // namespace content 200 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698