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

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

Issue 2384833002: Revert of Notify the renderer if a history navigation has no subframe items. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/common/navigation_params.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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),
143 has_committed_real_load(false), 142 has_committed_real_load(false),
144 intended_as_new_entry(false), 143 intended_as_new_entry(false),
145 pending_history_list_offset(-1), 144 pending_history_list_offset(-1),
146 current_history_list_offset(-1), 145 current_history_list_offset(-1),
147 current_history_list_length(0), 146 current_history_list_length(0),
148 is_view_source(false), 147 is_view_source(false),
149 should_clear_history_list(false), 148 should_clear_history_list(false),
150 should_create_service_worker(false) {} 149 should_create_service_worker(false) {}
151 150
152 RequestNavigationParams::RequestNavigationParams( 151 RequestNavigationParams::RequestNavigationParams(
153 bool is_overriding_user_agent, 152 bool is_overriding_user_agent,
154 const std::vector<GURL>& redirects, 153 const std::vector<GURL>& redirects,
155 bool can_load_local_resources, 154 bool can_load_local_resources,
156 base::Time request_time, 155 base::Time request_time,
157 const PageState& page_state, 156 const PageState& page_state,
158 int32_t page_id, 157 int32_t page_id,
159 int nav_entry_id, 158 int nav_entry_id,
160 bool is_same_document_history_load, 159 bool is_same_document_history_load,
161 bool is_history_navigation_in_new_child, 160 bool is_history_navigation_in_new_child,
162 bool has_subtree_history_items,
163 bool has_committed_real_load, 161 bool has_committed_real_load,
164 bool intended_as_new_entry, 162 bool intended_as_new_entry,
165 int pending_history_list_offset, 163 int pending_history_list_offset,
166 int current_history_list_offset, 164 int current_history_list_offset,
167 int current_history_list_length, 165 int current_history_list_length,
168 bool is_view_source, 166 bool is_view_source,
169 bool should_clear_history_list) 167 bool should_clear_history_list)
170 : is_overriding_user_agent(is_overriding_user_agent), 168 : is_overriding_user_agent(is_overriding_user_agent),
171 redirects(redirects), 169 redirects(redirects),
172 can_load_local_resources(can_load_local_resources), 170 can_load_local_resources(can_load_local_resources),
173 request_time(request_time), 171 request_time(request_time),
174 page_state(page_state), 172 page_state(page_state),
175 page_id(page_id), 173 page_id(page_id),
176 nav_entry_id(nav_entry_id), 174 nav_entry_id(nav_entry_id),
177 is_same_document_history_load(is_same_document_history_load), 175 is_same_document_history_load(is_same_document_history_load),
178 is_history_navigation_in_new_child(is_history_navigation_in_new_child), 176 is_history_navigation_in_new_child(is_history_navigation_in_new_child),
179 has_subtree_history_items(has_subtree_history_items),
180 has_committed_real_load(has_committed_real_load), 177 has_committed_real_load(has_committed_real_load),
181 intended_as_new_entry(intended_as_new_entry), 178 intended_as_new_entry(intended_as_new_entry),
182 pending_history_list_offset(pending_history_list_offset), 179 pending_history_list_offset(pending_history_list_offset),
183 current_history_list_offset(current_history_list_offset), 180 current_history_list_offset(current_history_list_offset),
184 current_history_list_length(current_history_list_length), 181 current_history_list_length(current_history_list_length),
185 is_view_source(is_view_source), 182 is_view_source(is_view_source),
186 should_clear_history_list(should_clear_history_list), 183 should_clear_history_list(should_clear_history_list),
187 should_create_service_worker(false) {} 184 should_create_service_worker(false) {}
188 185
189 RequestNavigationParams::RequestNavigationParams( 186 RequestNavigationParams::RequestNavigationParams(
190 const RequestNavigationParams& other) = default; 187 const RequestNavigationParams& other) = default;
191 188
192 RequestNavigationParams::~RequestNavigationParams() { 189 RequestNavigationParams::~RequestNavigationParams() {
193 } 190 }
194 191
195 NavigationParams::NavigationParams( 192 NavigationParams::NavigationParams(
196 const CommonNavigationParams& common_params, 193 const CommonNavigationParams& common_params,
197 const StartNavigationParams& start_params, 194 const StartNavigationParams& start_params,
198 const RequestNavigationParams& request_params) 195 const RequestNavigationParams& request_params)
199 : common_params(common_params), 196 : common_params(common_params),
200 start_params(start_params), 197 start_params(start_params),
201 request_params(request_params) { 198 request_params(request_params) {
202 } 199 }
203 200
204 NavigationParams::~NavigationParams() { 201 NavigationParams::~NavigationParams() {
205 } 202 }
206 203
207 } // namespace content 204 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698