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

Unified Diff: third_party/zlib/google/zip_reader.h

Issue 1552513002: Switch to standard integer types in third_party/zlib/google/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/zlib/google/zip_internal.cc ('k') | third_party/zlib/google/zip_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/zlib/google/zip_reader.h
diff --git a/third_party/zlib/google/zip_reader.h b/third_party/zlib/google/zip_reader.h
index da6cc93561c7a2da70e76e2ca9c7fa2b3b257db0..27cc81f4b5e688c011484b0d937125bc09d432dd 100644
--- a/third_party/zlib/google/zip_reader.h
+++ b/third_party/zlib/google/zip_reader.h
@@ -4,13 +4,16 @@
#ifndef THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_
#define THIRD_PARTY_ZLIB_GOOGLE_ZIP_READER_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/callback.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
@@ -64,7 +67,7 @@ class ZipReader {
typedef base::Closure FailureCallback;
// A callback that is called periodically during the operation with the number
// of bytes that have been processed so far.
- typedef base::Callback<void(int64)> ProgressCallback;
+ typedef base::Callback<void(int64_t)> ProgressCallback;
// This class represents information of an entry (file or directory) in
// a zip file.
@@ -81,7 +84,7 @@ class ZipReader {
// Returns 0 if the entry is a directory.
// Note: this value should not be trusted, because it is stored as metadata
// in the zip archive and can be different from the real uncompressed size.
- int64 original_size() const { return original_size_; }
+ int64_t original_size() const { return original_size_; }
// Returns the last modified time. If the time stored in the zip file was
// not valid, the unix epoch will be returned.
@@ -103,7 +106,7 @@ class ZipReader {
private:
const base::FilePath file_path_;
- int64 original_size_;
+ int64_t original_size_;
base::Time last_modified_;
bool is_directory_;
bool is_unsafe_;
@@ -237,7 +240,7 @@ class ZipReader {
const SuccessCallback& success_callback,
const FailureCallback& failure_callback,
const ProgressCallback& progress_callback,
- const int64 offset);
+ const int64_t offset);
unzFile zip_file_;
int num_entries_;
« no previous file with comments | « third_party/zlib/google/zip_internal.cc ('k') | third_party/zlib/google/zip_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698