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

Unified Diff: Source/web/FrameLoaderClientImpl.cpp

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/web/FrameLoaderClientImpl.cpp
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp
index 7b4a5236e2964744cfb99e8f8b8a90f54f2b50d4..99f88aa26698ba96a637475fe8bc2b7c4b01b405 100644
--- a/Source/web/FrameLoaderClientImpl.cpp
+++ b/Source/web/FrameLoaderClientImpl.cpp
@@ -929,4 +929,12 @@ unsigned FrameLoaderClientImpl::backForwardLength()
return webview->client()->historyBackListCount() + 1 + webview->client()->historyForwardListCount();
}
+void FrameLoaderClientImpl::suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType type)
+{
+ if (m_webFrame->client()) {
+ m_webFrame->client()->suddenTerminationDisablerChanged(
+ variation, static_cast<WebFrameClient::SuddenTerminationDisablerType>(type));
+ }
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698