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

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

Issue 2380943002: Tell renderer which subframes have history items on back/forward. (Closed)
Patch Set: Fix const ref. 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 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 150 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
152 151
153 RequestNavigationParams::RequestNavigationParams( 152 RequestNavigationParams::RequestNavigationParams(
154 bool is_overriding_user_agent, 153 bool is_overriding_user_agent,
155 const std::vector<GURL>& redirects, 154 const std::vector<GURL>& redirects,
156 bool can_load_local_resources, 155 bool can_load_local_resources,
157 base::Time request_time, 156 base::Time request_time,
158 const PageState& page_state, 157 const PageState& page_state,
159 int32_t page_id, 158 int32_t page_id,
160 int nav_entry_id, 159 int nav_entry_id,
161 bool is_same_document_history_load, 160 bool is_same_document_history_load,
162 bool is_history_navigation_in_new_child, 161 bool is_history_navigation_in_new_child,
163 bool has_subtree_history_items, 162 std::set<std::string> subframe_unique_names,
164 bool has_committed_real_load, 163 bool has_committed_real_load,
165 bool intended_as_new_entry, 164 bool intended_as_new_entry,
166 int pending_history_list_offset, 165 int pending_history_list_offset,
167 int current_history_list_offset, 166 int current_history_list_offset,
168 int current_history_list_length, 167 int current_history_list_length,
169 bool is_view_source, 168 bool is_view_source,
170 bool should_clear_history_list) 169 bool should_clear_history_list)
171 : is_overriding_user_agent(is_overriding_user_agent), 170 : is_overriding_user_agent(is_overriding_user_agent),
172 redirects(redirects), 171 redirects(redirects),
173 can_load_local_resources(can_load_local_resources), 172 can_load_local_resources(can_load_local_resources),
174 request_time(request_time), 173 request_time(request_time),
175 page_state(page_state), 174 page_state(page_state),
176 page_id(page_id), 175 page_id(page_id),
177 nav_entry_id(nav_entry_id), 176 nav_entry_id(nav_entry_id),
178 is_same_document_history_load(is_same_document_history_load), 177 is_same_document_history_load(is_same_document_history_load),
179 is_history_navigation_in_new_child(is_history_navigation_in_new_child), 178 is_history_navigation_in_new_child(is_history_navigation_in_new_child),
180 has_subtree_history_items(has_subtree_history_items), 179 subframe_unique_names(subframe_unique_names),
181 has_committed_real_load(has_committed_real_load), 180 has_committed_real_load(has_committed_real_load),
182 intended_as_new_entry(intended_as_new_entry), 181 intended_as_new_entry(intended_as_new_entry),
183 pending_history_list_offset(pending_history_list_offset), 182 pending_history_list_offset(pending_history_list_offset),
184 current_history_list_offset(current_history_list_offset), 183 current_history_list_offset(current_history_list_offset),
185 current_history_list_length(current_history_list_length), 184 current_history_list_length(current_history_list_length),
186 is_view_source(is_view_source), 185 is_view_source(is_view_source),
187 should_clear_history_list(should_clear_history_list), 186 should_clear_history_list(should_clear_history_list),
188 should_create_service_worker(false), 187 should_create_service_worker(false),
189 service_worker_provider_id(kInvalidServiceWorkerProviderId) {} 188 service_worker_provider_id(kInvalidServiceWorkerProviderId) {}
190 189
191 RequestNavigationParams::RequestNavigationParams( 190 RequestNavigationParams::RequestNavigationParams(
192 const RequestNavigationParams& other) = default; 191 const RequestNavigationParams& other) = default;
193 192
194 RequestNavigationParams::~RequestNavigationParams() { 193 RequestNavigationParams::~RequestNavigationParams() {
195 } 194 }
196 195
197 NavigationParams::NavigationParams( 196 NavigationParams::NavigationParams(
198 const CommonNavigationParams& common_params, 197 const CommonNavigationParams& common_params,
199 const StartNavigationParams& start_params, 198 const StartNavigationParams& start_params,
200 const RequestNavigationParams& request_params) 199 const RequestNavigationParams& request_params)
201 : common_params(common_params), 200 : common_params(common_params),
202 start_params(start_params), 201 start_params(start_params),
203 request_params(request_params) { 202 request_params(request_params) {
204 } 203 }
205 204
206 NavigationParams::~NavigationParams() { 205 NavigationParams::~NavigationParams() {
207 } 206 }
208 207
209 } // namespace content 208 } // 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