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 #ifndef THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ | 5 #ifndef THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ |
6 #define THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ | 6 #define THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
15 #include "base/time.h" | 15 #include "base/time/time.h" |
16 | 16 |
17 #if defined(USE_SYSTEM_MINIZIP) | 17 #if defined(USE_SYSTEM_MINIZIP) |
18 #include <minizip/unzip.h> | 18 #include <minizip/unzip.h> |
19 #else | 19 #else |
20 #include "third_party/zlib/contrib/minizip/unzip.h" | 20 #include "third_party/zlib/contrib/minizip/unzip.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace zip { | 23 namespace zip { |
24 | 24 |
25 // This class is used for reading zip files. A typical use case of this | 25 // This class is used for reading zip files. A typical use case of this |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 int num_entries_; | 168 int num_entries_; |
169 bool reached_end_; | 169 bool reached_end_; |
170 scoped_ptr<EntryInfo> current_entry_info_; | 170 scoped_ptr<EntryInfo> current_entry_info_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(ZipReader); | 172 DISALLOW_COPY_AND_ASSIGN(ZipReader); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace zip | 175 } // namespace zip |
176 | 176 |
177 #endif // THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ | 177 #endif // THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_ |
OLD | NEW |