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

Unified Diff: Source/core/loader/NavigationScheduler.cpp

Issue 1309883003: Add hooks for capturing meaningful text info, gently. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Oopsie fixed. Created 5 years, 4 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/core/loader/NavigationScheduler.cpp
diff --git a/Source/core/loader/NavigationScheduler.cpp b/Source/core/loader/NavigationScheduler.cpp
index ede1efdeac3bf0283535af9a9279cbce220204b3..2841a7980c71c1b8148245126de3899c5819f461 100644
--- a/Source/core/loader/NavigationScheduler.cpp
+++ b/Source/core/loader/NavigationScheduler.cpp
@@ -158,6 +158,7 @@ public:
request.setClientRedirect(ClientRedirect);
frame->loader().load(request);
}
+
private:
ScheduledRedirect(double delay, Document* originDocument, const String& url, bool replacesCurrentItem)
: ScheduledURLNavigation(delay, originDocument, url, replacesCurrentItem, false)
@@ -279,6 +280,11 @@ bool NavigationScheduler::locationChangePending()
return m_redirect && m_redirect->isLocationChange();
}
+bool NavigationScheduler::isNavigationScheduled() const
+{
+ return m_redirect;
+}
+
inline bool NavigationScheduler::shouldScheduleReload() const
{
return m_frame->page() && isFrameNavigationAllowed() && NavigationDisablerForBeforeUnload::isNavigationAllowed();

Powered by Google App Engine
This is Rietveld 408576698