Abstrating file access operation in zip creation

Desktop / Chromium - Jay Civelli [google.com] - 11 October 2017 22:38 EDT

Abstracting file access operations when creating ZIP files. This is going to be useful when ZIP operations are done by a Mojo service in a sandboxed environment and can only access files through IPC.

In order to make the API cleaner, introduced a parameter class that lets caller specify which options to use.

Bug: 772815 Change-Id: I229291a0c37bfee8fd29fe894a8118c91afab074 Reviewed-on: https://chromium-review.googlesource.com/706282 Commit-Queue: Jay Civelli

91ac47f Abstrating file access operation in zip creation.
third_party/zlib/google/zip.cc | 221 ++++++++++++++++++++++----------
third_party/zlib/google/zip.h | 100 +++++++++++++++
third_party/zlib/google/zip_internal.cc | 51 +++-----
third_party/zlib/google/zip_internal.h | 6 +-
third_party/zlib/google/zip_unittest.cc | 164 +++++++++++++++++++++---
5 files changed, 427 insertions(+), 115 deletions(-)

Upstream: git.chromium.org


  • Share