| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium 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 "third_party/zlib/google/zip_internal.h" | 5 #include "third_party/zlib/google/zip_internal.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 | 13 |
| 14 #if defined(USE_SYSTEM_MINIZIP) | 14 #if defined(USE_SYSTEM_MINIZIP) |
| 15 #include <minizip/ioapi.h> | 15 #include <minizip/ioapi.h> |
| 16 #include <minizip/unzip.h> | 16 #include <minizip/unzip.h> |
| 17 #include <minizip/zip.h> | 17 #include <minizip/zip.h> |
| 18 #else | 18 #else |
| 19 #include "third_party/zlib/contrib/minizip/unzip.h" | 19 #include "third_party/zlib/contrib/minizip/unzip.h" |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 0, // versionMadeBy | 369 0, // versionMadeBy |
| 370 LANGUAGE_ENCODING_FLAG)) { // flagBase | 370 LANGUAGE_ENCODING_FLAG)) { // flagBase |
| 371 DLOG(ERROR) << "Could not open zip file entry " << str_path; | 371 DLOG(ERROR) << "Could not open zip file entry " << str_path; |
| 372 return false; | 372 return false; |
| 373 } | 373 } |
| 374 return true; | 374 return true; |
| 375 } | 375 } |
| 376 | 376 |
| 377 } // namespace internal | 377 } // namespace internal |
| 378 } // namespace zip | 378 } // namespace zip |
| OLD | NEW |