| Index: third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
|
| index efa3ff9888501b7820794455df1864f89eff6acd..a22bae58cb56a65c361892eba1158807193cc007 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp
|
| @@ -49,20 +49,20 @@ DEFINE_TRACE(HTMLResourcePreloader)
|
| visitor->trace(m_document);
|
| }
|
|
|
| -static void preconnectHost(PreloadRequest* request, const NetworkHintsInterface& networkHintsInterface)
|
| +static void preconnectHost(PreloadRequest* request)
|
| {
|
| ASSERT(request);
|
| ASSERT(request->isPreconnect());
|
| KURL host(request->baseURL(), request->resourceURL());
|
| if (!host.isValid() || !host.protocolIsInHTTPFamily())
|
| return;
|
| - networkHintsInterface.preconnectHost(host, request->crossOrigin());
|
| + Platform::current()->preconnect(host, request->crossOrigin() != CrossOriginAttributeAnonymous, 1);
|
| }
|
|
|
| -void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload, const NetworkHintsInterface& networkHintsInterface)
|
| +void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload)
|
| {
|
| if (preload->isPreconnect()) {
|
| - preconnectHost(preload.get(), networkHintsInterface);
|
| + preconnectHost(preload.get());
|
| return;
|
| }
|
| // TODO(yoichio): Should preload if document is imported.
|
|
|