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

Unified Diff: Source/core/loader/FrameLoader.h

Issue 1041473002: Detach old frame on WebFrame::swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/loader/FrameLoader.h
diff --git a/Source/core/loader/FrameLoader.h b/Source/core/loader/FrameLoader.h
index 3bf958ac3c9b9432fec255e12a160d7b292a6734..7c5aa54533ea2d1bcf465c11d659565222de465f 100644
--- a/Source/core/loader/FrameLoader.h
+++ b/Source/core/loader/FrameLoader.h
@@ -152,6 +152,11 @@ public:
void finishedParsing();
void checkCompleted();
+ // This prepares the FrameLoader for the next commit. It will dispatch
+ // unload events, abort XHR requests and detach the document. Returns true
+ // if the frame is ready to receive the next commit, or false otherwise.
+ bool prepareForCommit();
+
void commitProvisionalLoad();
FrameLoaderStateMachine* stateMachine() const { return &m_stateMachine; }

Powered by Google App Engine
This is Rietveld 408576698