Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: ui/file_manager/zip_archiver/cpp/volume_archive_minizip.cc

Issue 2818673004: Rename filenames that end with libarchive with minizip. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698