#include "chrome/utility/safe_browsing/seven_zip_analyzer.h"
#include "base/feature_list.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_functions.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/common/safe_browsing/archive_analyzer_results.h"
#include "components/safe_browsing/content/common/file_type_policies.h"
#include "components/safe_browsing/core/common/features.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#include <winbase.h>
#elif BUILDFLAG(IS_POSIX)
#include <sys/mman.h>
#endif
namespace safe_browsing {
SevenZipAnalyzer::SevenZipAnalyzer() = default;
SevenZipAnalyzer::~SevenZipAnalyzer() = default;
void SevenZipAnalyzer::OnOpenError(seven_zip::Result result) { … }
base::File SevenZipAnalyzer::OnTempFileRequest() { … }
bool SevenZipAnalyzer::OnEntry(const seven_zip::EntryInfo& entry,
base::span<uint8_t>& output) { … }
bool SevenZipAnalyzer::OnDirectory(const seven_zip::EntryInfo& entry) { … }
bool SevenZipAnalyzer::EntryDone(seven_zip::Result result,
const seven_zip::EntryInfo& entry) { … }
void SevenZipAnalyzer::Init() { … }
bool SevenZipAnalyzer::ResumeExtraction() { … }
base::WeakPtr<ArchiveAnalyzer> SevenZipAnalyzer::GetWeakPtr() { … }
void SevenZipAnalyzer::OnGetTempFile(base::File temp_file) { … }
}