blob: 13f87f741ad38f566efe5bef0611464ecf1488ad [file] [log] [blame]
// 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 "core/fetch/testing/InternalsFetch.h"
#include "core/fetch/Response.h"
#include "platform/wtf/Vector.h"
namespace blink {
Vector<String> InternalsFetch::getInternalResponseURLList(Internals& internals,
Response* response) {
if (!response)
return Vector<String>();
Vector<String> url_list;
url_list.ReserveCapacity(response->InternalURLList().size());
for (const auto& url : response->InternalURLList())
url_list.push_back(url);
return url_list;
}
} // namespace blink