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

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

Issue 2507673002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (2) (Closed)
Patch Set: address review comments 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..a889fb54260bf9a6a53bbf6a890ecd2616eacf2e 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.h
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
@@ -33,6 +33,7 @@
#define NavigationScheduler_h
#include "core/CoreExport.h"
+#include "platform/WebTaskRunner.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebScheduler.h"
#include "wtf/Forward.h"
@@ -44,7 +45,6 @@
namespace blink {
-class CancellableTaskFactory;
class Document;
class FormSubmission;
class LocalFrame;
@@ -89,7 +89,7 @@ class CORE_EXPORT NavigationScheduler final
static bool mustReplaceCurrentItem(LocalFrame* targetFrame);
Member<LocalFrame> m_frame;
- std::unique_ptr<CancellableTaskFactory> m_navigateTaskFactory;
+ TaskHandle m_navigateTaskHandle;
Member<ScheduledNavigation> m_redirect;
// Exists because we can't deref m_frame in destructor.

Powered by Google App Engine
This is Rietveld 408576698