Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / html / parser / ResourcePreloader.cpp
blob16c53d60fe5730b6d37e46d04784ce143e8a3dde
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.
5 #include "config.h"
6 #include "core/html/parser/ResourcePreloader.h"
7 #include "core/loader/NetworkHintsInterface.h"
9 namespace blink {
11 void ResourcePreloader::takeAndPreload(PreloadRequestStream& r)
13 PreloadRequestStream requests;
14 NetworkHintsInterfaceImpl networkHintsInterface;
15 requests.swap(r);
17 for (PreloadRequestStream::iterator it = requests.begin(); it != requests.end(); ++it)
18 preload(it->release(), networkHintsInterface);