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

Unified Diff: net/url_request/url_request_file_job.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/url_request/url_request_file_dir_job.h ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_job.h
diff --git a/net/url_request/url_request_file_job.h b/net/url_request/url_request_file_job.h
index 97c6c2131d3dc4713d3a26436b92a5181cccdfdc..6aa2bbef2874f4ae4bed600470c81c727bcfb93c 100644
--- a/net/url_request/url_request_file_job.h
+++ b/net/url_request/url_request_file_job.h
@@ -5,10 +5,13 @@
#ifndef NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
#define NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
#include "base/files/file_path.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "net/base/net_errors.h"
@@ -46,13 +49,13 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override;
// An interface for subclasses who wish to monitor read operations.
- virtual void OnSeekComplete(int64 result);
+ virtual void OnSeekComplete(int64_t result);
virtual void OnReadComplete(IOBuffer* buf, int result);
protected:
~URLRequestFileJob() override;
- int64 remaining_bytes() const { return remaining_bytes_; }
+ int64_t remaining_bytes() const { return remaining_bytes_; }
// The OS-specific full path name of the file
base::FilePath file_path_;
@@ -65,7 +68,7 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
FileMetaInfo();
// Size of the file.
- int64 file_size;
+ int64_t file_size;
// Mime type associated with the file.
std::string mime_type;
// Result returned from GetMimeTypeFromFile(), i.e. flag showing whether
@@ -89,7 +92,7 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
// Callback after seeking to the beginning of |byte_range_| in the file
// on a background thread.
- void DidSeek(int64 result);
+ void DidSeek(int64_t result);
// Callback after data is asynchronously read from the file into |buf|.
void DidRead(scoped_refptr<IOBuffer> buf, int result);
@@ -100,7 +103,7 @@ class NET_EXPORT URLRequestFileJob : public URLRequestJob {
std::vector<HttpByteRange> byte_ranges_;
HttpByteRange byte_range_;
- int64 remaining_bytes_;
+ int64_t remaining_bytes_;
Error range_parse_result_;
« no previous file with comments | « net/url_request/url_request_file_dir_job.h ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698