#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/extensions/api/image_writer_private/zip_extractor.h"
#include <algorithm>
#include <memory>
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/task/thread_pool.h"
#include "chrome/browser/extensions/api/image_writer_private/error_constants.h"
namespace extensions {
namespace image_writer {
namespace {
constexpr char kExpectedMagic[4] = …;
}
bool ZipExtractor::IsZipFile(const base::FilePath& image_path) { … }
void ZipExtractor::Extract(ExtractionProperties properties) { … }
ZipExtractor::ZipExtractor(ExtractionProperties properties)
: … { … }
ZipExtractor::~ZipExtractor() = default;
void ZipExtractor::ExtractImpl() { … }
void ZipExtractor::OnError(const std::string& error) { … }
void ZipExtractor::OnComplete() { … }
}
}