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

Unified Diff: net/url_request/url_request_http_job.cc

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_http_job.h ('k') | net/url_request/url_request_intercepting_job_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 4ff32e918a852cba6ad1f8ab02ec19d9436070ec..2155ea9a54e0c1264b0556580c9e41dd468e8ef2 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/file_version_info.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
#include "base/profiler/scoped_tracker.h"
@@ -68,7 +69,7 @@ class URLRequestHttpJob::HttpFilterContext : public FilterContext {
base::Time GetRequestTime() const override;
bool IsCachedContent() const override;
SdchManager::DictionarySet* SdchDictionariesAdvertised() const override;
- int64 GetByteReadCount() const override;
+ int64_t GetByteReadCount() const override;
int GetResponseCode() const override;
const URLRequestContext* GetURLRequestContext() const override;
void RecordPacketStats(StatisticSelector statistic) const override;
@@ -117,7 +118,7 @@ URLRequestHttpJob::HttpFilterContext::SdchDictionariesAdvertised() const {
return job_->dictionaries_advertised_.get();
}
-int64 URLRequestHttpJob::HttpFilterContext::GetByteReadCount() const {
+int64_t URLRequestHttpJob::HttpFilterContext::GetByteReadCount() const {
return job_->prefilter_bytes_read();
}
@@ -1323,7 +1324,8 @@ bool URLRequestHttpJob::ShouldFixMismatchedContentLength(int rv) const {
if (rv == ERR_CONTENT_LENGTH_MISMATCH ||
rv == ERR_INCOMPLETE_CHUNKED_ENCODING) {
if (request_ && request_->response_headers()) {
- int64 expected_length = request_->response_headers()->GetContentLength();
+ int64_t expected_length =
+ request_->response_headers()->GetContentLength();
VLOG(1) << __FUNCTION__ << "() "
<< "\"" << request_->url().spec() << "\""
<< " content-length = " << expected_length
@@ -1371,7 +1373,7 @@ bool URLRequestHttpJob::GetFullRequestHeaders(
return transaction_->GetFullRequestHeaders(headers);
}
-int64 URLRequestHttpJob::GetTotalReceivedBytes() const {
+int64_t URLRequestHttpJob::GetTotalReceivedBytes() const {
int64_t total_received_bytes =
total_received_bytes_from_previous_transactions_;
if (transaction_)
« no previous file with comments | « net/url_request/url_request_http_job.h ('k') | net/url_request/url_request_intercepting_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698