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

Unified Diff: components/network_hints/renderer/prescient_networking_dispatcher.cc

Issue 2043863003: Speculatively launch Service Workers on mouse/touch events. [1/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/network_hints/renderer/prescient_networking_dispatcher.cc
diff --git a/components/network_hints/renderer/prescient_networking_dispatcher.cc b/components/network_hints/renderer/prescient_networking_dispatcher.cc
index a5145ac48b9fd03475e15bfe59c8441df9e21d09..d68e3139682eb31bcf2ac7d4bb1bfd9cb82ccefb 100644
--- a/components/network_hints/renderer/prescient_networking_dispatcher.cc
+++ b/components/network_hints/renderer/prescient_networking_dispatcher.cc
@@ -30,4 +30,10 @@ void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url,
preconnect_.Preconnect(url, allow_credentials);
}
+void PrescientNetworkingDispatcher::sendNavigationHint(
+ const blink::WebURL& url,
+ blink::WebNavigationHintType type) {
+ preconnect_.NavigationHint(url, type);
+}
+
} // namespace network_hints

Powered by Google App Engine
This is Rietveld 408576698