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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoader.h

Issue 2949073002: Changing scroll and view state in onpopstate shouldn't overwrite back/forward state restore (Closed)
Patch Set: +test Created 3 years, 6 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
4 * (http://www.torchmobile.com/) 4 * (http://www.torchmobile.com/)
5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
6 * Copyright (C) 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2011 Google Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 FrameLoadType, 240 FrameLoadType,
241 NavigationPolicy, 241 NavigationPolicy,
242 HistoryItem*); 242 HistoryItem*);
243 243
244 void LoadInSameDocument(const KURL&, 244 void LoadInSameDocument(const KURL&,
245 PassRefPtr<SerializedScriptValue> state_object, 245 PassRefPtr<SerializedScriptValue> state_object,
246 FrameLoadType, 246 FrameLoadType,
247 HistoryItem*, 247 HistoryItem*,
248 ClientRedirectPolicy, 248 ClientRedirectPolicy,
249 Document*); 249 Document*);
250 void RestoreScrollPositionAndViewStateForLoadType(FrameLoadType); 250 void RestoreScrollPositionAndViewStateForLoadType(
majidvp 2017/06/26 16:19:26 nit: Given that load type is no longer the sole ar
Nate Chapin 2017/07/11 22:17:59 Dropped "ForLoadType", which leaves multiple funct
251 FrameLoadType,
252 HistoryItem::ScrollAndViewState*,
253 HistoryScrollRestorationType);
251 254
252 void ScheduleCheckCompleted(); 255 void ScheduleCheckCompleted();
253 256
254 void DetachDocumentLoader(Member<DocumentLoader>&); 257 void DetachDocumentLoader(Member<DocumentLoader>&);
255 258
256 void UpgradeInsecureRequest(ResourceRequest&, Document*) const; 259 void UpgradeInsecureRequest(ResourceRequest&, Document*) const;
257 260
258 std::unique_ptr<TracedValue> ToTracedValue() const; 261 std::unique_ptr<TracedValue> ToTracedValue() const;
259 void TakeObjectSnapshot() const; 262 void TakeObjectSnapshot() const;
260 263
(...skipping 25 matching lines...) Expand all
286 SandboxFlags forced_sandbox_flags_; 289 SandboxFlags forced_sandbox_flags_;
287 290
288 bool dispatching_did_clear_window_object_in_main_world_; 291 bool dispatching_did_clear_window_object_in_main_world_;
289 bool protect_provisional_loader_; 292 bool protect_provisional_loader_;
290 bool detached_; 293 bool detached_;
291 }; 294 };
292 295
293 } // namespace blink 296 } // namespace blink
294 297
295 #endif // FrameLoader_h 298 #endif // FrameLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698