chromium/chrome/browser/extensions/api/image_writer_private/zip_extractor.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 {

// https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
constexpr char kExpectedMagic[4] =;

}  // namespace

// static
bool ZipExtractor::IsZipFile(const base::FilePath& image_path) {}

// static
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() {}

}  // namespace image_writer
}  // namespace extensions