| // 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 |