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

Unified Diff: net/disk_cache/blockfile/storage_block-inl.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/blockfile/storage_block.h ('k') | net/disk_cache/blockfile/trace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/storage_block-inl.h
diff --git a/net/disk_cache/blockfile/storage_block-inl.h b/net/disk_cache/blockfile/storage_block-inl.h
index f919c128c407629d2190bb04391fbfeff17bbf08..3d880bb9938475259f48df1a33dd203cbb433934 100644
--- a/net/disk_cache/blockfile/storage_block-inl.h
+++ b/net/disk_cache/blockfile/storage_block-inl.h
@@ -7,6 +7,9 @@
#include "net/disk_cache/blockfile/storage_block.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/hash.h"
#include "base/logging.h"
#include "net/disk_cache/blockfile/trace.h"
@@ -103,7 +106,7 @@ template<typename T> bool StorageBlock<T>::HasData() const {
}
template<typename T> bool StorageBlock<T>::VerifyHash() const {
- uint32 hash = CalculateHash();
+ uint32_t hash = CalculateHash();
return (!data_->self_hash || data_->self_hash == hash);
}
@@ -196,7 +199,8 @@ template<typename T> void StorageBlock<T>::DeleteData() {
}
}
-template<typename T> uint32 StorageBlock<T>::CalculateHash() const {
+template <typename T>
+uint32_t StorageBlock<T>::CalculateHash() const {
return base::Hash(reinterpret_cast<char*>(data_), offsetof(T, self_hash));
}
« no previous file with comments | « net/disk_cache/blockfile/storage_block.h ('k') | net/disk_cache/blockfile/trace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698