Chromium Code Reviews

Unified Diff: components/network_hints/renderer/renderer_preconnect.h

Issue 1131293004: Add cross origin to Blink-driven preconnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove crossorigin logic Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: components/network_hints/renderer/renderer_preconnect.h
diff --git a/components/network_hints/renderer/renderer_preconnect.h b/components/network_hints/renderer/renderer_preconnect.h
index adc014339fadd5f1fb3c196819c42ea0f8aced19..461fd28c64c91041354ec1d2acfa1a65c934ff46 100644
--- a/components/network_hints/renderer/renderer_preconnect.h
+++ b/components/network_hints/renderer/renderer_preconnect.h
@@ -22,14 +22,14 @@
namespace network_hints {
// An internal interface to the network_hints component for efficiently sending
-// DNS prefetch requests to the net stack.
+// preconnect requests to the net stack.
class RendererPreconnect {
public:
RendererPreconnect();
~RendererPreconnect();
// Submit a preconnect request for a single connection.
- void Preconnect(const GURL &url);
+ void Preconnect(const GURL &url, bool allow_credentials);
private:

Powered by Google App Engine