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

Unified Diff: net/disk_cache/blockfile/entry_impl_v3.h

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
Patch Set: rebase 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/entry_impl.cc ('k') | net/disk_cache/blockfile/entry_impl_v3.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/entry_impl_v3.h
diff --git a/net/disk_cache/blockfile/entry_impl_v3.h b/net/disk_cache/blockfile/entry_impl_v3.h
index e36834b67558db850fde3e6c1272e2a6be2ae2a9..000362ea40bea425930474367d8e7c4ad4aec44c 100644
--- a/net/disk_cache/blockfile/entry_impl_v3.h
+++ b/net/disk_cache/blockfile/entry_impl_v3.h
@@ -5,6 +5,8 @@
#ifndef NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_
#define NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_
+#include <stdint.h>
+
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -40,11 +42,11 @@ class NET_EXPORT_PRIVATE EntryImplV3
// Performs the initialization of a EntryImplV3 that will be added to the
// cache.
- bool CreateEntry(Addr node_address, const std::string& key, uint32 hash);
+ bool CreateEntry(Addr node_address, const std::string& key, uint32_t hash);
- uint32 GetHash();
+ uint32_t GetHash();
- uint32 GetHash() const;
+ uint32_t GetHash() const;
Addr GetAddress() const;
int GetReuseCounter() const;
void SetReuseCounter(int count);
@@ -52,7 +54,7 @@ class NET_EXPORT_PRIVATE EntryImplV3
void SetRefetchCounter(int count);
// Returns true if this entry matches the lookup arguments.
- bool IsSameEntry(const std::string& key, uint32 hash);
+ bool IsSameEntry(const std::string& key, uint32_t hash);
// Permamently destroys this entry.
void InternalDoom();
@@ -82,7 +84,7 @@ class NET_EXPORT_PRIVATE EntryImplV3
std::string GetKey() const override;
base::Time GetLastUsed() const override;
base::Time GetLastModified() const override;
- int32 GetDataSize(int index) const override;
+ int32_t GetDataSize(int index) const override;
int ReadData(int index,
int offset,
IOBuffer* buf,
@@ -94,17 +96,17 @@ class NET_EXPORT_PRIVATE EntryImplV3
int buf_len,
const CompletionCallback& callback,
bool truncate) override;
- int ReadSparseData(int64 offset,
+ int ReadSparseData(int64_t offset,
IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) override;
- int WriteSparseData(int64 offset,
+ int WriteSparseData(int64_t offset,
IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) override;
- int GetAvailableRange(int64 offset,
+ int GetAvailableRange(int64_t offset,
int len,
- int64* start,
+ int64_t* start,
const CompletionCallback& callback) override;
bool CouldBeSparse() const override;
void CancelSparseIO() override;
@@ -176,10 +178,10 @@ class NET_EXPORT_PRIVATE EntryImplV3
int InitSparseData();
// Adds the provided |flags| to the current EntryFlags for this entry.
- void SetEntryFlags(uint32 flags);
+ void SetEntryFlags(uint32_t flags);
// Returns the current EntryFlags for this entry.
- uint32 GetEntryFlags();
+ uint32_t GetEntryFlags();
// Gets the data stored at the given index. If the information is in memory,
// a buffer will be allocated and the data will be copied to it (the caller
« no previous file with comments | « net/disk_cache/blockfile/entry_impl.cc ('k') | net/disk_cache/blockfile/entry_impl_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698