Index: Source/core/loader/FrameLoaderClient.h |
diff --git a/Source/core/loader/FrameLoaderClient.h b/Source/core/loader/FrameLoaderClient.h |
index dd5d85960a57c50dd92f082cc2b45fca0c14308c..9be3b9eecf7a8947063338b6a76e4ef2d4bf2e42 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. |added| is true if an element was added, false if it |
+ // was removed. |type| is the type of element (BeforeUnload handler, Unload |
+ // handler). |
+ enum SuddenTerminationDisablerType { |
+ BeforeUnloadHandler, |
+ UnloadHandler, |
+ }; |
+ virtual void suddenTerminationDisablerChanged(bool added, SuddenTerminationDisablerType) { } |
+ |
}; |
} // namespace blink |