// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_ZLIB_GOOGLE_ZIP_WRITER_H_ #define THIRD_PARTY_ZLIB_GOOGLE_ZIP_WRITER_H_ #include <memory> #include <vector> #include "base/files/file_path.h" #include "base/time/time.h" #include "build/build_config.h" #include "third_party/zlib/google/zip.h" #if defined(USE_SYSTEM_MINIZIP) #include <minizip/unzip.h> #include <minizip/zip.h> #else #include "third_party/zlib/contrib/minizip/unzip.h" #include "third_party/zlib/contrib/minizip/zip.h" #endif namespace zip { namespace internal { // A class used to write entries to a ZIP file and buffering the reading of // files to limit the number of calls to the FileAccessor. This is for // performance reasons as these calls may be expensive when IPC based). // This class is so far internal and only used by zip.cc, but could be made // public if needed. // // All methods returning a bool return true on success and false on error. class ZipWriter { … }; } // namespace internal } // namespace zip #endif // THIRD_PARTY_ZLIB_GOOGLE_ZIP_WRITER_H_