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

Unified Diff: components/network_hints/renderer/renderer_preconnect.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/renderer_preconnect.cc
diff --git a/components/network_hints/renderer/renderer_preconnect.cc b/components/network_hints/renderer/renderer_preconnect.cc
index 41d8033478e7c58ad2954ff81951f05e6ae9b9a3..da770caf91df112c4c46da7bdcf69d1bd9d4ebd4 100644
--- a/components/network_hints/renderer/renderer_preconnect.cc
+++ b/components/network_hints/renderer/renderer_preconnect.cc
@@ -20,12 +20,14 @@ RendererPreconnect::RendererPreconnect() {
RendererPreconnect::~RendererPreconnect() {
}
-void RendererPreconnect::Preconnect(const GURL &url) {
+void RendererPreconnect::Preconnect(const GURL &url,
+ blink::CrossOriginAttributeValue crossOrigin) {
if (!url.is_valid())
return;
+ bool isAnonymous = (crossOrigin == blink::CrossOriginAttributeAnonymous);
Ryan Sleevi 2015/06/10 19:30:42 This isn't really correct, is it? You should be ga
Ryan Sleevi 2015/06/11 18:30:09 Yoav wrote:
RenderThread::Get()->Send(
- new NetworkHintsMsg_Preconnect(url, 1));
+ new NetworkHintsMsg_Preconnect(url, isAnonymous, 1));
}
} // namespace network_hints

Powered by Google App Engine
This is Rietveld 408576698