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

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

Issue 899883004: Added chrome-side support for link rel=preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed formatting nit Created 5 years, 10 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 ee02f019e22ed235ec1dac3501aa07ec0360d3c6..a5599c99b0aa80209042a3d7a35516e155ab386d 100644
--- a/components/network_hints/renderer/prescient_networking_dispatcher.cc
+++ b/components/network_hints/renderer/prescient_networking_dispatcher.cc
@@ -24,4 +24,9 @@ void PrescientNetworkingDispatcher::prefetchDNS(
dns_prefetch_.Resolve(hostname_utf8.data(), hostname_utf8.length());
}
+void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url) {
+ VLOG(2) << "Preconnect: " << url.string().utf8();
+ preconnect_.Preconnect(url);
+}
+
} // namespace network_hints

Powered by Google App Engine
This is Rietveld 408576698