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

Unified Diff: net/disk_cache/simple/simple_entry_operation.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
Index: net/disk_cache/simple/simple_entry_operation.h
diff --git a/net/disk_cache/simple/simple_entry_operation.h b/net/disk_cache/simple/simple_entry_operation.h
index b2f5502a00b36dd67e9df6ad5fdc3da78b5bff7e..a9b3a0fb1f58bc92c5dcca7abed529f7abee4433 100644
--- a/net/disk_cache/simple/simple_entry_operation.h
+++ b/net/disk_cache/simple/simple_entry_operation.h
@@ -5,6 +5,8 @@
#ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_
#define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_
+#include <stdint.h>
+
#include "base/memory/ref_counted.h"
#include "net/base/completion_callback.h"
#include "net/log/net_log.h"
@@ -68,21 +70,21 @@ class SimpleEntryOperation {
const CompletionCallback& callback);
static SimpleEntryOperation ReadSparseOperation(
SimpleEntryImpl* entry,
- int64 sparse_offset,
+ int64_t sparse_offset,
int length,
net::IOBuffer* buf,
const CompletionCallback& callback);
static SimpleEntryOperation WriteSparseOperation(
SimpleEntryImpl* entry,
- int64 sparse_offset,
+ int64_t sparse_offset,
int length,
net::IOBuffer* buf,
const CompletionCallback& callback);
static SimpleEntryOperation GetAvailableRangeOperation(
SimpleEntryImpl* entry,
- int64 sparse_offset,
+ int64_t sparse_offset,
int length,
- int64* out_start,
+ int64_t* out_start,
const CompletionCallback& callback);
static SimpleEntryOperation DoomOperation(
SimpleEntryImpl* entry,
@@ -101,9 +103,9 @@ class SimpleEntryOperation {
bool have_index() const { return have_index_; }
int index() const { return index_; }
int offset() const { return offset_; }
- int64 sparse_offset() const { return sparse_offset_; }
+ int64_t sparse_offset() const { return sparse_offset_; }
int length() const { return length_; }
- int64* out_start() { return out_start_; }
+ int64_t* out_start() { return out_start_; }
net::IOBuffer* buf() { return buf_.get(); }
bool truncate() const { return truncate_; }
bool optimistic() const { return optimistic_; }
@@ -115,9 +117,9 @@ class SimpleEntryOperation {
const CompletionCallback& callback,
Entry** out_entry,
int offset,
- int64 sparse_offset,
+ int64_t sparse_offset,
int length,
- int64* out_start,
+ int64_t* out_start,
EntryOperationType type,
bool have_index,
int index,
@@ -135,11 +137,11 @@ class SimpleEntryOperation {
// Used in write and read operations.
const int offset_;
- const int64 sparse_offset_;
+ const int64_t sparse_offset_;
const int length_;
// Used in get available range operations.
- int64* const out_start_;
+ int64_t* const out_start_;
const EntryOperationType type_;
// Used in open and create operations.
« no previous file with comments | « net/disk_cache/simple/simple_entry_format_history.h ('k') | net/disk_cache/simple/simple_entry_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698