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

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

Issue 1305933007: Make NavigationScheduler post loading tasks instead of timers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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.h
diff --git a/Source/core/loader/NavigationScheduler.h b/Source/core/loader/NavigationScheduler.h
index 352ae163d569b7793d8ec56aa6d4fe3b324a34d5..e755265cf207afa5ff463122026729f05a4f16d8 100644
--- a/Source/core/loader/NavigationScheduler.h
+++ b/Source/core/loader/NavigationScheduler.h
@@ -34,6 +34,7 @@
#include "core/CoreExport.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
+#include "platform/scheduler/CancellableTaskFactory.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
@@ -113,13 +114,13 @@ private:
bool shouldScheduleReload() const;
bool shouldScheduleNavigation(const String& url) const;
- void timerFired(Timer<NavigationScheduler>*);
+ void navigateTask();
void schedule(PassOwnPtrWillBeRawPtr<ScheduledNavigation>);
static bool mustReplaceCurrentItem(LocalFrame* targetFrame);
RawPtrWillBeMember<LocalFrame> m_frame;
- Timer<NavigationScheduler> m_timer;
+ CancellableTaskFactory m_navigateTaskFactory;
OwnPtrWillBeMember<ScheduledNavigation> m_redirect;
int m_navigationDisableCount;
};
« no previous file with comments | « no previous file | Source/core/loader/NavigationScheduler.cpp » ('j') | Source/core/loader/NavigationScheduler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698