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

Unified Diff: net/disk_cache/blockfile/stats.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/sparse_control_v3.cc ('k') | net/disk_cache/blockfile/stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/stats.h
diff --git a/net/disk_cache/blockfile/stats.h b/net/disk_cache/blockfile/stats.h
index 32dcc2f22b5f4faba2b25011e54d589ff4f48b17..34b54c6ef53e8db3ff5bbc088a2fbf728ca3bfa7 100644
--- a/net/disk_cache/blockfile/stats.h
+++ b/net/disk_cache/blockfile/stats.h
@@ -5,9 +5,12 @@
#ifndef NET_DISK_CACHE_BLOCKFILE_STATS_H_
#define NET_DISK_CACHE_BLOCKFILE_STATS_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/strings/string_split.h"
#include "net/base/net_export.h"
#include "net/disk_cache/blockfile/addr.h"
@@ -64,12 +67,12 @@ class NET_EXPORT_PRIVATE Stats {
int StorageSize();
// Tracks changes to the stoage space used by an entry.
- void ModifyStorageStats(int32 old_size, int32 new_size);
+ void ModifyStorageStats(int32_t old_size, int32_t new_size);
// Tracks general events.
void OnEvent(Counters an_event);
- void SetCounter(Counters counter, int64 value);
- int64 GetCounter(Counters counter) const;
+ void SetCounter(Counters counter, int64_t value);
+ int64_t GetCounter(Counters counter) const;
void GetItems(StatsItems* items);
int GetHitRatio() const;
@@ -86,12 +89,12 @@ class NET_EXPORT_PRIVATE Stats {
private:
// Supports generation of SizeStats histogram data.
int GetBucketRange(size_t i) const;
- int GetStatsBucket(int32 size);
+ int GetStatsBucket(int32_t size);
int GetRatio(Counters hit, Counters miss) const;
Addr storage_addr_;
int data_sizes_[kDataSizesLength];
- int64 counters_[MAX_COUNTER];
+ int64_t counters_[MAX_COUNTER];
DISALLOW_COPY_AND_ASSIGN(Stats);
};
« no previous file with comments | « net/disk_cache/blockfile/sparse_control_v3.cc ('k') | net/disk_cache/blockfile/stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698