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 { |
Nate Chapin
2015/01/20 18:46:49
This enum and the matching one in WebFrameClient.h
clamy
2015/01/21 13:46:31
Done.
|
+ BeforeUnloadHandler, |
+ UnloadHandler, |
+ }; |
+ virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType) { } |
+ |
}; |
} // namespace blink |