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

Unified Diff: net/http/http_byte_range.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/http/http_byte_range.h ('k') | net/http/http_byte_range_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_byte_range.cc
diff --git a/net/http/http_byte_range.cc b/net/http/http_byte_range.cc
index b43cb2e8008608c025ceb94355cb28d06b818ab7..ad12fa9847cca0b22a385adeadcacdb2dea60b21 100644
--- a/net/http/http_byte_range.cc
+++ b/net/http/http_byte_range.cc
@@ -11,7 +11,7 @@
namespace {
-const int64 kPositionNotSpecified = -1;
+const int64_t kPositionNotSpecified = -1;
} // namespace
@@ -25,8 +25,8 @@ HttpByteRange::HttpByteRange()
}
// static
-HttpByteRange HttpByteRange::Bounded(int64 first_byte_position,
- int64 last_byte_position) {
+HttpByteRange HttpByteRange::Bounded(int64_t first_byte_position,
+ int64_t last_byte_position) {
HttpByteRange range;
range.set_first_byte_position(first_byte_position);
range.set_last_byte_position(last_byte_position);
@@ -34,14 +34,14 @@ HttpByteRange HttpByteRange::Bounded(int64 first_byte_position,
}
// static
-HttpByteRange HttpByteRange::RightUnbounded(int64 first_byte_position) {
+HttpByteRange HttpByteRange::RightUnbounded(int64_t first_byte_position) {
HttpByteRange range;
range.set_first_byte_position(first_byte_position);
return range;
}
// static
-HttpByteRange HttpByteRange::Suffix(int64 suffix_length) {
+HttpByteRange HttpByteRange::Suffix(int64_t suffix_length) {
HttpByteRange range;
range.set_suffix_length(suffix_length);
return range;
@@ -82,7 +82,7 @@ std::string HttpByteRange::GetHeaderValue() const {
first_byte_position(), last_byte_position());
}
-bool HttpByteRange::ComputeBounds(int64 size) {
+bool HttpByteRange::ComputeBounds(int64_t size) {
if (size < 0)
return false;
if (has_computed_bounds_)
« no previous file with comments | « net/http/http_byte_range.h ('k') | net/http/http_byte_range_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698