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

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

Issue 1415603018: OOPIF: Support session restore by combining/splitting frame states. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and fix bugs Created 5 years 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/frame_messages.h ('k') | content/common/navigation_params.cc » ('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 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/frame_message_enums.h" 13 #include "content/common/frame_message_enums.h"
14 #include "content/common/page_state_serialization.h"
14 #include "content/public/common/page_state.h" 15 #include "content/public/common/page_state.h"
15 #include "content/public/common/referrer.h" 16 #include "content/public/common/referrer.h"
16 #include "content/public/common/request_context_type.h" 17 #include "content/public/common/request_context_type.h"
17 #include "ui/base/page_transition_types.h" 18 #include "ui/base/page_transition_types.h"
18 #include "url/gurl.h" 19 #include "url/gurl.h"
19 20
20 namespace base { 21 namespace base {
21 class RefCountedMemory; 22 class RefCountedMemory;
22 } 23 }
23 24
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // start a browser-initiated navigation besides those in CommonNavigationParams. 210 // start a browser-initiated navigation besides those in CommonNavigationParams.
210 // PlzNavigate: sent to the renderer to make it issue a stream request for a 211 // PlzNavigate: sent to the renderer to make it issue a stream request for a
211 // navigation that is ready to commit. 212 // navigation that is ready to commit.
212 struct CONTENT_EXPORT RequestNavigationParams { 213 struct CONTENT_EXPORT RequestNavigationParams {
213 RequestNavigationParams(); 214 RequestNavigationParams();
214 RequestNavigationParams(bool is_overriding_user_agent, 215 RequestNavigationParams(bool is_overriding_user_agent,
215 const std::vector<GURL>& redirects, 216 const std::vector<GURL>& redirects,
216 bool can_load_local_resources, 217 bool can_load_local_resources,
217 base::Time request_time, 218 base::Time request_time,
218 const PageState& page_state, 219 const PageState& page_state,
220 const ExplodedFrameState& frame_state,
219 int32 page_id, 221 int32 page_id,
220 int nav_entry_id, 222 int nav_entry_id,
221 bool is_same_document_history_load, 223 bool is_same_document_history_load,
222 bool has_committed_real_load, 224 bool has_committed_real_load,
223 bool intended_as_new_entry, 225 bool intended_as_new_entry,
224 int pending_history_list_offset, 226 int pending_history_list_offset,
225 int current_history_list_offset, 227 int current_history_list_offset,
226 int current_history_list_length, 228 int current_history_list_length,
227 bool should_clear_history_list); 229 bool should_clear_history_list);
228 ~RequestNavigationParams(); 230 ~RequestNavigationParams();
229 231
230 // Whether or not the user agent override string should be used. 232 // Whether or not the user agent override string should be used.
231 bool is_overriding_user_agent; 233 bool is_overriding_user_agent;
232 234
233 // Any redirect URLs that occurred before |url|. Useful for cross-process 235 // Any redirect URLs that occurred before |url|. Useful for cross-process
234 // navigations; defaults to empty. 236 // navigations; defaults to empty.
235 std::vector<GURL> redirects; 237 std::vector<GURL> redirects;
236 238
237 // Whether or not this url should be allowed to access local file:// 239 // Whether or not this url should be allowed to access local file://
238 // resources. 240 // resources.
239 bool can_load_local_resources; 241 bool can_load_local_resources;
240 242
241 // The time the request was created. This is used by the old performance 243 // The time the request was created. This is used by the old performance
242 // infrastructure to set up DocumentState associated with the RenderView. 244 // infrastructure to set up DocumentState associated with the RenderView.
243 // TODO(ppi): make it go away. 245 // TODO(ppi): make it go away.
244 base::Time request_time; 246 base::Time request_time;
245 247
246 // Opaque history state (received by ViewHostMsg_UpdateState). 248 // Opaque history state (received by ViewHostMsg_UpdateState).
249 // Only used if SiteIsolationPolicy::UseSubframeNavigationEntries is false.
247 PageState page_state; 250 PageState page_state;
248 251
252 // History state for this frame.
253 // Only used if SiteIsolationPolicy::UseSubframeNavigationEntries is true.
254 ExplodedFrameState frame_state;
255
249 // The page_id for this navigation, or -1 if it is a new navigation. Back, 256 // The page_id for this navigation, or -1 if it is a new navigation. Back,
250 // Forward, and Reload navigations should have a valid page_id. If the load 257 // Forward, and Reload navigations should have a valid page_id. If the load
251 // succeeds, then this page_id will be reflected in the resultant 258 // succeeds, then this page_id will be reflected in the resultant
252 // FrameHostMsg_DidCommitProvisionalLoad message. 259 // FrameHostMsg_DidCommitProvisionalLoad message.
253 int32 page_id; 260 int32 page_id;
254 261
255 // For browser-initiated navigations, this is the unique id of the 262 // For browser-initiated navigations, this is the unique id of the
256 // NavigationEntry being navigated to. (For renderer-initiated navigations it 263 // NavigationEntry being navigated to. (For renderer-initiated navigations it
257 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in 264 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in
258 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. 265 // the resulting FrameHostMsg_DidCommitProvisionalLoad message.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ~NavigationParams(); 316 ~NavigationParams();
310 317
311 CommonNavigationParams common_params; 318 CommonNavigationParams common_params;
312 StartNavigationParams start_params; 319 StartNavigationParams start_params;
313 RequestNavigationParams request_params; 320 RequestNavigationParams request_params;
314 }; 321 };
315 322
316 } // namespace content 323 } // namespace content
317 324
318 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 325 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698