blob: 48bb7aee026ab4412557065e1bf99c8555e8430e [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/html/parser/ResourcePreloader.h"
#include "core/loader/NetworkHintsInterface.h"
namespace blink {
void ResourcePreloader::takeAndPreload(PreloadRequestStream& r)
{
PreloadRequestStream requests;
NetworkHintsInterfaceImpl networkHintsInterface;
requests.swap(r);
for (PreloadRequestStream::iterator it = requests.begin(); it != requests.end(); ++it)
preload(std::move(*it), networkHintsInterface);
}
} // namespace blink