#include "chrome/browser/extensions/api/image_writer_private/xz_extractor.h"
#include <utility>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "chrome/browser/extensions/api/image_writer_private/error_constants.h"
#include "chrome/browser/file_util_service.h"
namespace extensions {
namespace image_writer {
namespace {
constexpr base::FilePath::StringPieceType kExtractedBinFileName = …);
constexpr uint8_t kExpectedMagic[6] = …;
}
bool XzExtractor::IsXzFile(const base::FilePath& image_path) { … }
void XzExtractor::Extract(ExtractionProperties properties) { … }
XzExtractor::XzExtractor(ExtractionProperties properties)
: … { … }
XzExtractor::~XzExtractor() = default;
void XzExtractor::OnProgress(uint64_t total_bytes, uint64_t progress_bytes) { … }
void XzExtractor::ExtractImpl() { … }
void XzExtractor::OnRemoteFinished(
chrome::file_util::mojom::ExtractionResult result) { … }
void XzExtractor::RunFailureCallbackAndDeleteThis(const std::string& error_id) { … }
}
}