Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #include "config.h" | |
| 6 #include "core/html/parser/ResourcePreloader.h" | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 void ResourcePreloader::takeAndPreload(PreloadRequestStream& r) | |
| 11 { | |
| 12 PreloadRequestStream requests; | |
| 13 requests.swap(r); | |
| 14 | |
| 15 for (PreloadRequestStream::iterator it = requests.begin(); it != requests.en d(); ++it) | |
| 16 preload(it->release()); | |
| 17 } | |
| 18 | |
| 19 } | |
| OLD | NEW |