blob: 9222271925e67630c98ed6ec25d2657181f42859 [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 "third_party/blink/renderer/core/html/parser/resource_preloader.h"
#include <utility>
namespace blink {
void ResourcePreloader::TakeAndPreload(PreloadRequestStream& r) {
PreloadRequestStream requests;
requests.swap(r);
for (PreloadRequestStream::iterator it = requests.begin();
it != requests.end(); ++it)
Preload(std::move(*it));
}
} // namespace blink