1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "core/html/parser/ResourcePreloader.h"
7 #include "core/loader/NetworkHintsInterface.h"
11 void ResourcePreloader::takeAndPreload(PreloadRequestStream
& r
)
13 PreloadRequestStream requests
;
14 NetworkHintsInterfaceImpl networkHintsInterface
;
17 for (PreloadRequestStream::iterator it
= requests
.begin(); it
!= requests
.end(); ++it
)
18 preload(it
->release(), networkHintsInterface
);