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

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.h

Issue 2487403002: Allow navigations to frames that aren't being unloaded in the unload handler. (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/core/loader/NavigationScheduler.h
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.h b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
index b6ac577ef29e1910bd273b513f874287048c0a8a..5f24153e23afa77131fc180979795e904efe26fd 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.h
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
@@ -96,22 +96,6 @@ class CORE_EXPORT NavigationScheduler final
WebScheduler::NavigatingFrameType m_frameType;
};
-class NavigationDisablerForUnload {
- WTF_MAKE_NONCOPYABLE(NavigationDisablerForUnload);
- STACK_ALLOCATED();
-
- public:
- NavigationDisablerForUnload() { s_navigationDisableCount++; }
- ~NavigationDisablerForUnload() {
- DCHECK(s_navigationDisableCount);
- s_navigationDisableCount--;
- }
- static bool isNavigationAllowed() { return !s_navigationDisableCount; }
-
- private:
- static unsigned s_navigationDisableCount;
-};
-
} // namespace blink
#endif // NavigationScheduler_h

Powered by Google App Engine
This is Rietveld 408576698