#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/indexeddb/idb_request_loader.h"
#include <algorithm>
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fileapi/file_reader_loader.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_value.h"
#include "third_party/blink/renderer/modules/indexeddb/idb_value_wrapping.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
namespace blink {
IDBRequestLoader::IDBRequestLoader(
Vector<std::unique_ptr<IDBValue>>&& values,
ExecutionContext* execution_context,
LoadCompleteCallback&& load_complete_callback)
: … { … }
IDBRequestLoader::~IDBRequestLoader() { … }
void IDBRequestLoader::Start() { … }
Vector<std::unique_ptr<IDBValue>>&& IDBRequestLoader::Cancel() { … }
void IDBRequestLoader::StartNextValue() { … }
FileErrorCode IDBRequestLoader::DidStartLoading(uint64_t) { … }
FileErrorCode IDBRequestLoader::DidReceiveData(base::span<const uint8_t> data) { … }
void IDBRequestLoader::DidFinishLoading() { … }
void IDBRequestLoader::DidFail(FileErrorCode) { … }
void IDBRequestLoader::OnLoadComplete(bool error) { … }
}