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

Unified Diff: net/http/mock_http_cache.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/simple/simple_synchronous_entry.cc ('k') | net/http/mock_http_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/mock_http_cache.h
diff --git a/net/http/mock_http_cache.h b/net/http/mock_http_cache.h
index e0b8e71732dab83243d5fa9ba003687a51fee249..86b8e51d758a7945aa20d73245281c3a1cbe72e1 100644
--- a/net/http/mock_http_cache.h
+++ b/net/http/mock_http_cache.h
@@ -10,6 +10,8 @@
#ifndef NET_HTTP_MOCK_HTTP_CACHE_H_
#define NET_HTTP_MOCK_HTTP_CACHE_H_
+#include <stdint.h>
+
#include "base/containers/hash_tables.h"
#include "base/strings/string_split.h"
#include "net/disk_cache/disk_cache.h"
@@ -33,7 +35,7 @@ class MockDiskEntry : public disk_cache::Entry,
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,
@@ -45,17 +47,17 @@ class MockDiskEntry : public disk_cache::Entry,
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;
@@ -112,7 +114,7 @@ class MockDiskCache : public disk_cache::Backend {
~MockDiskCache() override;
CacheType GetCacheType() const override;
- int32 GetEntryCount() const override;
+ int32_t GetEntryCount() const override;
int OpenEntry(const std::string& key,
disk_cache::Entry** entry,
const CompletionCallback& callback) override;
« no previous file with comments | « net/disk_cache/simple/simple_synchronous_entry.cc ('k') | net/http/mock_http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698