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

Unified Diff: third_party/WebKit/public/platform/WebPrescientNetworking.h

Issue 2043083002: Speculatively launch Service Workers on mouse/touch events. [2/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert BUILD.gn Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/public/platform/WebNavigationHintType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebPrescientNetworking.h
diff --git a/third_party/WebKit/public/platform/WebPrescientNetworking.h b/third_party/WebKit/public/platform/WebPrescientNetworking.h
index 0b2872e3f9b5caa008c46f25a75f5c663c8a7f4b..65d2b0eae03f81dd747661ca7921770fe1791f0b 100644
--- a/third_party/WebKit/public/platform/WebPrescientNetworking.h
+++ b/third_party/WebKit/public/platform/WebPrescientNetworking.h
@@ -37,6 +37,8 @@
namespace blink {
+enum class WebNavigationHintType;
+
class WebPrescientNetworking {
public:
virtual ~WebPrescientNetworking() { }
@@ -46,6 +48,9 @@ public:
virtual void prefetchDNS(const WebString& hostname) { }
virtual void preconnect(const WebURL& url, const bool allowCredentials) { }
+
+ // Send a hint that a navigation to |url| is likely to happen.
+ virtual void sendNavigationHint(const WebURL& url, WebNavigationHintType) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/platform/WebNavigationHintType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698