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

Unified Diff: net/disk_cache/blockfile/in_flight_backend_io.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/file_ios.cc ('k') | net/disk_cache/blockfile/in_flight_backend_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/in_flight_backend_io.h
diff --git a/net/disk_cache/blockfile/in_flight_backend_io.h b/net/disk_cache/blockfile/in_flight_backend_io.h
index b661466c122052264fa4106d9cd810bdf56269bf..5ac0bf442356a091c1f70ce383e03f85cc3794d3 100644
--- a/net/disk_cache/blockfile/in_flight_backend_io.h
+++ b/net/disk_cache/blockfile/in_flight_backend_io.h
@@ -5,9 +5,12 @@
#ifndef NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_BACKEND_IO_H_
#define NET_DISK_CACHE_BLOCKFILE_IN_FLIGHT_BACKEND_IO_H_
+#include <stdint.h>
+
#include <list>
#include <string>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/single_thread_task_runner.h"
#include "base/time/time.h"
@@ -68,11 +71,18 @@ class BackendIO : public BackgroundIO {
int buf_len);
void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
int buf_len, bool truncate);
- void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
+ void ReadSparseData(EntryImpl* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
int buf_len);
- void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
+ void WriteSparseData(EntryImpl* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
int buf_len);
- void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start);
+ void GetAvailableRange(EntryImpl* entry,
+ int64_t offset,
+ int len,
+ int64_t* start);
void CancelSparseIO(EntryImpl* entry);
void ReadyForSparseIO(EntryImpl* entry);
@@ -137,8 +147,8 @@ class BackendIO : public BackgroundIO {
scoped_refptr<net::IOBuffer> buf_;
int buf_len_;
bool truncate_;
- int64 offset64_;
- int64* start_;
+ int64_t offset64_;
+ int64_t* start_;
base::TimeTicks start_time_;
base::Closure task_;
@@ -182,11 +192,20 @@ class InFlightBackendIO : public InFlightIO {
void WriteData(
EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
int buf_len, bool truncate, const net::CompletionCallback& callback);
- void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
- int buf_len, const net::CompletionCallback& callback);
- void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
- int buf_len, const net::CompletionCallback& callback);
- void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start,
+ void ReadSparseData(EntryImpl* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const net::CompletionCallback& callback);
+ void WriteSparseData(EntryImpl* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const net::CompletionCallback& callback);
+ void GetAvailableRange(EntryImpl* entry,
+ int64_t offset,
+ int len,
+ int64_t* start,
const net::CompletionCallback& callback);
void CancelSparseIO(EntryImpl* entry);
void ReadyForSparseIO(EntryImpl* entry,
« no previous file with comments | « net/disk_cache/blockfile/file_ios.cc ('k') | net/disk_cache/blockfile/in_flight_backend_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698