LibWeb: Rename ConnectionQueue to RequestList

This commit is contained in:
stelar7 2025-01-08 23:55:08 +01:00 committed by Jelle Raaijmakers
commit b43bb2429a
Notes: github-actions[bot] 2025-01-14 22:47:13 +00:00
6 changed files with 67 additions and 28 deletions

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/IndexedDB/Internal/RequestList.h>
namespace Web::IndexedDB {
bool RequestList::all_requests_processed() const
{
for (auto const& entry : *this) {
if (!entry->processed())
return false;
}
return true;
}
bool RequestList::all_previous_requests_processed(GC::Ref<IDBRequest> const& request) const
{
for (auto const& entry : *this) {
if (entry == request)
return true;
if (!entry->processed())
return false;
}
return true;
}
}