| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "volume_archive_libarchive.h" | 5 #include "volume_archive_minizip.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cerrno> | 8 #include <cerrno> |
| 9 #include <cstring> | 9 #include <cstring> |
| 10 #include <limits> | 10 #include <limits> |
| 11 #include <time.h> | 11 #include <time.h> |
| 12 | 12 |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "ppapi/cpp/logging.h" | 15 #include "ppapi/cpp/logging.h" |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 decompressed_data_buffer_ + | 488 decompressed_data_buffer_ + |
| 489 volume_archive_constants::kDecompressBufferSize); | 489 volume_archive_constants::kDecompressBufferSize); |
| 490 | 490 |
| 491 return read_bytes; | 491 return read_bytes; |
| 492 } | 492 } |
| 493 | 493 |
| 494 void VolumeArchiveMinizip::MaybeDecompressAhead() { | 494 void VolumeArchiveMinizip::MaybeDecompressAhead() { |
| 495 if (decompressed_data_size_ == 0) | 495 if (decompressed_data_size_ == 0) |
| 496 DecompressData(last_read_data_offset_, last_read_data_length_); | 496 DecompressData(last_read_data_offset_, last_read_data_length_); |
| 497 } | 497 } |
| OLD | NEW |