| Index: Source/platform/network/NetworkHints.cpp
|
| diff --git a/Source/platform/network/NetworkHints.cpp b/Source/platform/network/NetworkHints.cpp
|
| index e48f51b48529fbbb7c93bedb8dc92e2a16716fc2..db8118038a6115675945da4fbd3332bb5332963f 100644
|
| --- a/Source/platform/network/NetworkHints.cpp
|
| +++ b/Source/platform/network/NetworkHints.cpp
|
| @@ -38,10 +38,15 @@ void prefetchDNS(const String& hostname)
|
| prescientNetworking->prefetchDNS(hostname);
|
| }
|
|
|
| -void preconnect(const KURL& url)
|
| +void preconnect(const KURL& url, const CrossOriginAttributeValue crossOrigin)
|
| {
|
| - if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking())
|
| - prescientNetworking->preconnect(url);
|
| + if (WebPrescientNetworking* prescientNetworking = Platform::current()->prescientNetworking()) {
|
| + // TODO(yoav): Call only the crossorigin interface once everything is hooked up.
|
| + if (crossOrigin == CrossOriginAttributeNotSet)
|
| + prescientNetworking->preconnect(url);
|
| + else
|
| + prescientNetworking->preconnect(url, crossOrigin);
|
| + }
|
| }
|
|
|
| } // namespace blink
|
|
|