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

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

Issue 1399363004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Kinuko's comments Created 5 years, 1 month 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.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/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 request_time(base::Time::Now()), 119 request_time(base::Time::Now()),
120 page_id(-1), 120 page_id(-1),
121 nav_entry_id(0), 121 nav_entry_id(0),
122 is_same_document_history_load(false), 122 is_same_document_history_load(false),
123 has_committed_real_load(false), 123 has_committed_real_load(false),
124 intended_as_new_entry(false), 124 intended_as_new_entry(false),
125 pending_history_list_offset(-1), 125 pending_history_list_offset(-1),
126 current_history_list_offset(-1), 126 current_history_list_offset(-1),
127 current_history_list_length(0), 127 current_history_list_length(0),
128 should_clear_history_list(false), 128 should_clear_history_list(false),
129 should_create_service_worker(false),
129 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 130 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
130 131
131 RequestNavigationParams::RequestNavigationParams( 132 RequestNavigationParams::RequestNavigationParams(
132 bool is_overriding_user_agent, 133 bool is_overriding_user_agent,
133 base::TimeTicks navigation_start, 134 base::TimeTicks navigation_start,
134 const std::vector<GURL>& redirects, 135 const std::vector<GURL>& redirects,
135 bool can_load_local_resources, 136 bool can_load_local_resources,
136 base::Time request_time, 137 base::Time request_time,
137 const PageState& page_state, 138 const PageState& page_state,
138 int32 page_id, 139 int32 page_id,
(...skipping 13 matching lines...) Expand all
152 page_state(page_state), 153 page_state(page_state),
153 page_id(page_id), 154 page_id(page_id),
154 nav_entry_id(nav_entry_id), 155 nav_entry_id(nav_entry_id),
155 is_same_document_history_load(is_same_document_history_load), 156 is_same_document_history_load(is_same_document_history_load),
156 has_committed_real_load(has_committed_real_load), 157 has_committed_real_load(has_committed_real_load),
157 intended_as_new_entry(intended_as_new_entry), 158 intended_as_new_entry(intended_as_new_entry),
158 pending_history_list_offset(pending_history_list_offset), 159 pending_history_list_offset(pending_history_list_offset),
159 current_history_list_offset(current_history_list_offset), 160 current_history_list_offset(current_history_list_offset),
160 current_history_list_length(current_history_list_length), 161 current_history_list_length(current_history_list_length),
161 should_clear_history_list(should_clear_history_list), 162 should_clear_history_list(should_clear_history_list),
163 should_create_service_worker(false),
162 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 164 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
163 165
164 RequestNavigationParams::~RequestNavigationParams() { 166 RequestNavigationParams::~RequestNavigationParams() {
165 } 167 }
166 168
167 NavigationParams::NavigationParams( 169 NavigationParams::NavigationParams(
168 const CommonNavigationParams& common_params, 170 const CommonNavigationParams& common_params,
169 const StartNavigationParams& start_params, 171 const StartNavigationParams& start_params,
170 const RequestNavigationParams& request_params) 172 const RequestNavigationParams& request_params)
171 : common_params(common_params), 173 : common_params(common_params),
172 start_params(start_params), 174 start_params(start_params),
173 request_params(request_params) { 175 request_params(request_params) {
174 } 176 }
175 177
176 NavigationParams::~NavigationParams() { 178 NavigationParams::~NavigationParams() {
177 } 179 }
178 180
179 } // namespace content 181 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698