Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/platform/network/NetworkHints.cpp

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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/network/NetworkHints.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkHints.cpp b/third_party/WebKit/Source/platform/network/NetworkHints.cpp
index c2c99f7c232bf9945552c288d0cd6cb31acfedc8..1ebcf0b6d52bf2289858b957c1e1d3e9ed9f9a11 100644
--- a/third_party/WebKit/Source/platform/network/NetworkHints.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkHints.cpp
@@ -45,4 +45,11 @@ void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin)
}
}
+void sendNavigationHint(const KURL& url, WebNavigationHintType type)
+{
+ if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking()) {
+ prescientNetworking->sendNavigationHint(url, type);
+ }
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/network/NetworkHints.h ('k') | third_party/WebKit/public/blink_headers.gypi » ('j') | no next file with comments »

Powered by Google App Engine