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

Unified Diff: net/disk_cache/simple/simple_index_file.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef 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 | « net/disk_cache/simple/simple_index_delegate.h ('k') | net/disk_cache/simple/simple_index_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file.h
diff --git a/net/disk_cache/simple/simple_index_file.h b/net/disk_cache/simple/simple_index_file.h
index b0ca1f553f0ff7b38e39dd18c3af36b32f183083..eb13301168b00677ae70f30f691455ea7e9cd27b 100644
--- a/net/disk_cache/simple/simple_index_file.h
+++ b/net/disk_cache/simple/simple_index_file.h
@@ -6,14 +6,15 @@
#define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_
#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
#include "base/files/file_path.h"
#include "base/gtest_prod_util.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/pickle.h"
#include "net/base/cache_type.h"
@@ -27,7 +28,7 @@ class TaskRunner;
namespace disk_cache {
-const uint64 kSimpleIndexMagicNumber = UINT64_C(0x656e74657220796f);
+const uint64_t kSimpleIndexMagicNumber = UINT64_C(0x656e74657220796f);
struct NET_EXPORT_PRIVATE SimpleIndexLoadResult {
SimpleIndexLoadResult();
@@ -55,23 +56,23 @@ class NET_EXPORT_PRIVATE SimpleIndexFile {
class NET_EXPORT_PRIVATE IndexMetadata {
public:
IndexMetadata();
- IndexMetadata(uint64 number_of_entries, uint64 cache_size);
+ IndexMetadata(uint64_t number_of_entries, uint64_t cache_size);
void Serialize(base::Pickle* pickle) const;
bool Deserialize(base::PickleIterator* it);
bool CheckIndexMetadata();
- uint64 GetNumberOfEntries() { return number_of_entries_; }
+ uint64_t GetNumberOfEntries() { return number_of_entries_; }
private:
FRIEND_TEST_ALL_PREFIXES(IndexMetadataTest, Basics);
FRIEND_TEST_ALL_PREFIXES(IndexMetadataTest, Serialize);
- uint64 magic_number_;
- uint32 version_;
- uint64 number_of_entries_;
- uint64 cache_size_; // Total cache storage size in bytes.
+ uint64_t magic_number_;
+ uint32_t version_;
+ uint64_t number_of_entries_;
+ uint64_t cache_size_; // Total cache storage size in bytes.
};
SimpleIndexFile(
@@ -88,7 +89,7 @@ class NET_EXPORT_PRIVATE SimpleIndexFile {
// Write the specified set of entries to disk.
virtual void WriteToDisk(const SimpleIndex::EntrySet& entry_set,
- uint64 cache_size,
+ uint64_t cache_size,
const base::TimeTicks& start,
bool app_on_background,
const base::Closure& callback);
@@ -169,7 +170,7 @@ class NET_EXPORT_PRIVATE SimpleIndexFile {
const base::FilePath& index_file_path);
struct PickleHeader : public base::Pickle::Header {
- uint32 crc;
+ uint32_t crc;
};
const scoped_refptr<base::SingleThreadTaskRunner> cache_thread_;
« no previous file with comments | « net/disk_cache/simple/simple_index_delegate.h ('k') | net/disk_cache/simple/simple_index_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698