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

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

Issue 2644633006: Add KURL::protocolIsJavascript member function (Closed)
Patch Set: Created 3 years, 11 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: 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 3e14352acfffaa25f2ac25c11def10f9854dbdf9..fd67aa989d0fef6952e752c482633cdbb4ea787a 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.h
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.h
@@ -35,6 +35,7 @@
#include "core/CoreExport.h"
#include "platform/WebTaskRunner.h"
#include "platform/heap/Handle.h"
+#include "platform/weborigin/KURL.h"
#include "public/platform/WebScheduler.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
@@ -64,9 +65,9 @@ class CORE_EXPORT NavigationScheduler final
bool locationChangePending();
bool isNavigationScheduledWithin(double intervalInSeconds) const;
- void scheduleRedirect(double delay, const String& url);
+ void scheduleRedirect(double delay, const KURL&);
void scheduleLocationChange(Document*,
- const String& url,
+ const KURL&,
bool replacesCurrentItem = true);
void schedulePageBlock(Document*, int reason);
void scheduleFormSubmission(Document*, FormSubmission*);
@@ -81,7 +82,7 @@ class CORE_EXPORT NavigationScheduler final
explicit NavigationScheduler(LocalFrame*);
bool shouldScheduleReload() const;
- bool shouldScheduleNavigation(const String& url) const;
+ bool shouldScheduleNavigation(const KURL&) const;
void navigateTask();
void schedule(ScheduledNavigation*);

Powered by Google App Engine
This is Rietveld 408576698