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

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

Issue 2196333002: PlzNavigate: Clear provisional history item on redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timing_api
Patch Set: Created 4 years, 4 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. (http://www.t orchmobile.com/) 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 Frame* opener(); 150 Frame* opener();
151 void setOpener(LocalFrame*); 151 void setOpener(LocalFrame*);
152 152
153 void detach(); 153 void detach();
154 154
155 void finishedParsing(); 155 void finishedParsing();
156 void checkCompleted(); 156 void checkCompleted();
157 157
158 void receivedMainResourceRedirect(const KURL& newURL); 158 void receivedMainResourceRedirect(const KURL& newURL);
159 159
160 void discardProvisionalHistoryItem();
161
160 // This prepares the FrameLoader for the next commit. It will dispatch 162 // This prepares the FrameLoader for the next commit. It will dispatch
161 // unload events, abort XHR requests and detach the document. Returns true 163 // unload events, abort XHR requests and detach the document. Returns true
162 // if the frame is ready to receive the next commit, or false otherwise. 164 // if the frame is ready to receive the next commit, or false otherwise.
163 bool prepareForCommit(); 165 bool prepareForCommit();
164 166
165 void commitProvisionalLoad(); 167 void commitProvisionalLoad();
166 168
167 FrameLoaderStateMachine* stateMachine() const { return &m_stateMachine; } 169 FrameLoaderStateMachine* stateMachine() const { return &m_stateMachine; }
168 170
169 void applyUserAgent(ResourceRequest&); 171 void applyUserAgent(ResourceRequest&);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 282
281 SandboxFlags m_forcedSandboxFlags; 283 SandboxFlags m_forcedSandboxFlags;
282 284
283 bool m_dispatchingDidClearWindowObjectInMainWorld; 285 bool m_dispatchingDidClearWindowObjectInMainWorld;
284 bool m_protectProvisionalLoader; 286 bool m_protectProvisionalLoader;
285 }; 287 };
286 288
287 } // namespace blink 289 } // namespace blink
288 290
289 #endif // FrameLoader_h 291 #endif // FrameLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698