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 1131293004: Add cross origin to Blink-driven preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test and switch to a boolean 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: 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 a5599c99b0aa80209042a3d7a35516e155ab386d..aae53acb52e089e36a1cecc728d696dd2c9c1b4c 100644
--- a/components/network_hints/renderer/prescient_networking_dispatcher.cc
+++ b/components/network_hints/renderer/prescient_networking_dispatcher.cc
@@ -26,7 +26,13 @@ void PrescientNetworkingDispatcher::prefetchDNS(
void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url) {
VLOG(2) << "Preconnect: " << url.string().utf8();
- preconnect_.Preconnect(url);
+ preconnect_.Preconnect(url, blink::CrossOriginAttributeNotSet);
+}
+
+void PrescientNetworkingDispatcher::preconnect(const blink::WebURL& url,
+ const blink::CrossOriginAttributeValue crossOrigin) {
+ VLOG(2) << "Preconnect: " << url.string().utf8();
+ preconnect_.Preconnect(url, crossOrigin);
}
} // namespace network_hints

Powered by Google App Engine
This is Rietveld 408576698