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

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

Issue 874283003: Have WebFrameClient::suddenTerminationDisablerChanged return a boolean (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nits 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
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoaderClient.h
diff --git a/Source/core/loader/FrameLoaderClient.h b/Source/core/loader/FrameLoaderClient.h
index b9854232971a129b6180deec2804e79c669b923a..cd988e1dd69f2105f7751f0604aa8c234fa44b32 100644
--- a/Source/core/loader/FrameLoaderClient.h
+++ b/Source/core/loader/FrameLoaderClient.h
@@ -228,15 +228,14 @@ namespace blink {
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
+ // Called when elements preventing the sudden termination of the frame
+ // become present or stop being present. |type| is the type of element
// (BeforeUnload handler, Unload handler).
enum SuddenTerminationDisablerType {
BeforeUnloadHandler,
UnloadHandler,
};
- virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType) { }
+ virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisablerType) { }
};
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698