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

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

Issue 1138743002: Added <link rel=preconnect> crossorigin attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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: Source/platform/network/NetworkHints.cpp
diff --git a/Source/platform/network/NetworkHints.cpp b/Source/platform/network/NetworkHints.cpp
index e48f51b48529fbbb7c93bedb8dc92e2a16716fc2..415b7082919f4c48bda63fc7ac6e1b5fd733ca72 100644
--- a/Source/platform/network/NetworkHints.cpp
+++ b/Source/platform/network/NetworkHints.cpp
@@ -38,8 +38,9 @@ void prefetchDNS(const String& hostname)
prescientNetworking->prefetchDNS(hostname);
}
-void preconnect(const KURL& url)
+void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin)
{
+ // TODO(yoav): Should send the crossOrigin data to the Chrome side.
Mike West 2015/05/11 12:53:35 Why not define the new method in this patch and gi
if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking())
prescientNetworking->preconnect(url);
}

Powered by Google App Engine
This is Rietveld 408576698