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

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 comments Created 5 years, 2 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/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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 request_time(base::Time::Now()), 116 request_time(base::Time::Now()),
117 page_id(-1), 117 page_id(-1),
118 nav_entry_id(0), 118 nav_entry_id(0),
119 is_same_document_history_load(false), 119 is_same_document_history_load(false),
120 has_committed_real_load(false), 120 has_committed_real_load(false),
121 intended_as_new_entry(false), 121 intended_as_new_entry(false),
122 pending_history_list_offset(-1), 122 pending_history_list_offset(-1),
123 current_history_list_offset(-1), 123 current_history_list_offset(-1),
124 current_history_list_length(0), 124 current_history_list_length(0),
125 should_clear_history_list(false), 125 should_clear_history_list(false),
126 should_create_service_worker(false),
126 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 127 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
127 128
128 RequestNavigationParams::RequestNavigationParams( 129 RequestNavigationParams::RequestNavigationParams(
129 bool is_overriding_user_agent, 130 bool is_overriding_user_agent,
130 base::TimeTicks navigation_start, 131 base::TimeTicks navigation_start,
131 const std::vector<GURL>& redirects, 132 const std::vector<GURL>& redirects,
132 bool can_load_local_resources, 133 bool can_load_local_resources,
133 base::Time request_time, 134 base::Time request_time,
134 const PageState& page_state, 135 const PageState& page_state,
135 int32 page_id, 136 int32 page_id,
(...skipping 13 matching lines...) Expand all
149 page_state(page_state), 150 page_state(page_state),
150 page_id(page_id), 151 page_id(page_id),
151 nav_entry_id(nav_entry_id), 152 nav_entry_id(nav_entry_id),
152 is_same_document_history_load(is_same_document_history_load), 153 is_same_document_history_load(is_same_document_history_load),
153 has_committed_real_load(has_committed_real_load), 154 has_committed_real_load(has_committed_real_load),
154 intended_as_new_entry(intended_as_new_entry), 155 intended_as_new_entry(intended_as_new_entry),
155 pending_history_list_offset(pending_history_list_offset), 156 pending_history_list_offset(pending_history_list_offset),
156 current_history_list_offset(current_history_list_offset), 157 current_history_list_offset(current_history_list_offset),
157 current_history_list_length(current_history_list_length), 158 current_history_list_length(current_history_list_length),
158 should_clear_history_list(should_clear_history_list), 159 should_clear_history_list(should_clear_history_list),
160 should_create_service_worker(false),
159 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 161 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
160 162
161 RequestNavigationParams::~RequestNavigationParams() { 163 RequestNavigationParams::~RequestNavigationParams() {
162 } 164 }
163 165
164 NavigationParams::NavigationParams( 166 NavigationParams::NavigationParams(
165 const CommonNavigationParams& common_params, 167 const CommonNavigationParams& common_params,
166 const StartNavigationParams& start_params, 168 const StartNavigationParams& start_params,
167 const RequestNavigationParams& request_params) 169 const RequestNavigationParams& request_params)
168 : common_params(common_params), 170 : common_params(common_params),
169 start_params(start_params), 171 start_params(start_params),
170 request_params(request_params) { 172 request_params(request_params) {
171 } 173 }
172 174
173 NavigationParams::~NavigationParams() { 175 NavigationParams::~NavigationParams() {
174 } 176 }
175 177
176 } // namespace content 178 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698