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

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

Issue 2316003002: Notify the renderer if a history navigation has no subframe items. (Closed)
Patch Set: Fix indent. Created 4 years, 3 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),
142 has_committed_real_load(false), 143 has_committed_real_load(false),
143 intended_as_new_entry(false), 144 intended_as_new_entry(false),
144 pending_history_list_offset(-1), 145 pending_history_list_offset(-1),
145 current_history_list_offset(-1), 146 current_history_list_offset(-1),
146 current_history_list_length(0), 147 current_history_list_length(0),
147 is_view_source(false), 148 is_view_source(false),
148 should_clear_history_list(false), 149 should_clear_history_list(false),
149 should_create_service_worker(false), 150 should_create_service_worker(false),
150 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 151 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
151 152
152 RequestNavigationParams::RequestNavigationParams( 153 RequestNavigationParams::RequestNavigationParams(
153 bool is_overriding_user_agent, 154 bool is_overriding_user_agent,
154 const std::vector<GURL>& redirects, 155 const std::vector<GURL>& redirects,
155 bool can_load_local_resources, 156 bool can_load_local_resources,
156 base::Time request_time, 157 base::Time request_time,
157 const PageState& page_state, 158 const PageState& page_state,
158 int32_t page_id, 159 int32_t page_id,
159 int nav_entry_id, 160 int nav_entry_id,
160 bool is_same_document_history_load, 161 bool is_same_document_history_load,
161 bool is_history_navigation_in_new_child, 162 bool is_history_navigation_in_new_child,
163 bool has_subtree_history_items,
162 bool has_committed_real_load, 164 bool has_committed_real_load,
163 bool intended_as_new_entry, 165 bool intended_as_new_entry,
164 int pending_history_list_offset, 166 int pending_history_list_offset,
165 int current_history_list_offset, 167 int current_history_list_offset,
166 int current_history_list_length, 168 int current_history_list_length,
167 bool is_view_source, 169 bool is_view_source,
168 bool should_clear_history_list) 170 bool should_clear_history_list)
169 : is_overriding_user_agent(is_overriding_user_agent), 171 : is_overriding_user_agent(is_overriding_user_agent),
170 redirects(redirects), 172 redirects(redirects),
171 can_load_local_resources(can_load_local_resources), 173 can_load_local_resources(can_load_local_resources),
172 request_time(request_time), 174 request_time(request_time),
173 page_state(page_state), 175 page_state(page_state),
174 page_id(page_id), 176 page_id(page_id),
175 nav_entry_id(nav_entry_id), 177 nav_entry_id(nav_entry_id),
176 is_same_document_history_load(is_same_document_history_load), 178 is_same_document_history_load(is_same_document_history_load),
177 is_history_navigation_in_new_child(is_history_navigation_in_new_child), 179 is_history_navigation_in_new_child(is_history_navigation_in_new_child),
180 has_subtree_history_items(has_subtree_history_items),
178 has_committed_real_load(has_committed_real_load), 181 has_committed_real_load(has_committed_real_load),
179 intended_as_new_entry(intended_as_new_entry), 182 intended_as_new_entry(intended_as_new_entry),
180 pending_history_list_offset(pending_history_list_offset), 183 pending_history_list_offset(pending_history_list_offset),
181 current_history_list_offset(current_history_list_offset), 184 current_history_list_offset(current_history_list_offset),
182 current_history_list_length(current_history_list_length), 185 current_history_list_length(current_history_list_length),
183 is_view_source(is_view_source), 186 is_view_source(is_view_source),
184 should_clear_history_list(should_clear_history_list), 187 should_clear_history_list(should_clear_history_list),
185 should_create_service_worker(false), 188 should_create_service_worker(false),
186 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 189 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
187 190
188 RequestNavigationParams::RequestNavigationParams( 191 RequestNavigationParams::RequestNavigationParams(
189 const RequestNavigationParams& other) = default; 192 const RequestNavigationParams& other) = default;
190 193
191 RequestNavigationParams::~RequestNavigationParams() { 194 RequestNavigationParams::~RequestNavigationParams() {
192 } 195 }
193 196
194 NavigationParams::NavigationParams( 197 NavigationParams::NavigationParams(
195 const CommonNavigationParams& common_params, 198 const CommonNavigationParams& common_params,
196 const StartNavigationParams& start_params, 199 const StartNavigationParams& start_params,
197 const RequestNavigationParams& request_params) 200 const RequestNavigationParams& request_params)
198 : common_params(common_params), 201 : common_params(common_params),
199 start_params(start_params), 202 start_params(start_params),
200 request_params(request_params) { 203 request_params(request_params) {
201 } 204 }
202 205
203 NavigationParams::~NavigationParams() { 206 NavigationParams::~NavigationParams() {
204 } 207 }
205 208
206 } // namespace content 209 } // 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