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

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

Issue 861773003: Inform the WebFrameClient of BeforeUnload/Unload handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed Nate's comments Created 5 years, 11 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/FrameLoaderClient.h
diff --git a/Source/core/loader/FrameLoaderClient.h b/Source/core/loader/FrameLoaderClient.h
index dd5d85960a57c50dd92f082cc2b45fca0c14308c..b9854232971a129b6180deec2804e79c669b923a 100644
--- a/Source/core/loader/FrameLoaderClient.h
+++ b/Source/core/loader/FrameLoaderClient.h
@@ -227,6 +227,17 @@ namespace blink {
virtual unsigned backForwardLength() { return 0; }
virtual bool isFrameLoaderClientImpl() const { return false; }
+
+ // Called when an element preventing the sudden termination of the frame
+ // is added or removed. |variation| is the number of elements added, or
+ // removed if it is negative. |type| is the type of element
+ // (BeforeUnload handler, Unload handler).
+ enum SuddenTerminationDisablerType {
+ BeforeUnloadHandler,
+ UnloadHandler,
+ };
+ virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType) { }
+
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698