blob: 918271674348aea96405d3e39d852789424212fb [file]
// Copyright 2016 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 "modules/fetch/testing/InternalsFetch.h"
#include "modules/fetch/Response.h"
#include "wtf/Vector.h"
namespace blink {
Vector<String> InternalsFetch::getInternalResponseURLList(Internals& internals,
Response* response) {
if (!response)
return Vector<String>();
Vector<String> urlList;
urlList.reserveCapacity(response->internalURLList().size());
for (const auto& url : response->internalURLList())
urlList.push_back(url);
return urlList;
}
} // namespace blink