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

Unified Diff: Source/core/page/DOMWindow.cpp

Issue 25767002: Inline SuddenTermination.h into the one file that uses it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/core.gypi ('k') | Source/core/platform/SuddenTermination.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/DOMWindow.cpp
diff --git a/Source/core/page/DOMWindow.cpp b/Source/core/page/DOMWindow.cpp
index 9cd9e3c9b5709bc961587fc316d77506c0fd9358..ec68a52adc7ae0069a93c8fa44531c8f86555804 100644
--- a/Source/core/page/DOMWindow.cpp
+++ b/Source/core/page/DOMWindow.cpp
@@ -88,13 +88,13 @@
#include "core/page/WindowFocusAllowedIndicator.h"
#include "core/page/scrolling/ScrollingCoordinator.h"
#include "core/platform/PlatformScreen.h"
-#include "core/platform/SuddenTermination.h"
#include "core/platform/graphics/MediaPlayer.h"
#include "core/storage/Storage.h"
#include "core/storage/StorageArea.h"
#include "core/storage/StorageNamespace.h"
#include "modules/device_orientation/NewDeviceOrientationController.h"
#include "platform/geometry/FloatRect.h"
+#include "public/platform/Platform.h"
#include "weborigin/KURL.h"
#include "weborigin/SecurityOrigin.h"
#include "weborigin/SecurityPolicy.h"
@@ -141,6 +141,16 @@ private:
RefPtr<ScriptCallStack> m_stackTrace;
};
+static void disableSuddenTermination()
+{
+ WebKit::Platform::current()->suddenTerminationChanged(false);
+}
+
+static void enableSuddenTermination()
+{
+ WebKit::Platform::current()->suddenTerminationChanged(true);
+}
+
typedef HashCountedSet<DOMWindow*> DOMWindowSet;
static DOMWindowSet& windowsWithUnloadEventListeners()
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/platform/SuddenTermination.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698