summaryrefslogtreecommitdiffstats
path: root/net/http/http_byte_range.cc
diff options
context:
space:
mode:
authorAvi Drissman <avi@chromium.org>2015-12-19 23:40:46 -0500
committerAvi Drissman <avi@chromium.org>2015-12-20 04:42:28 +0000
commit13fc893acb88fdd82ad7eea72f9499d123bf5a89 (patch)
tree76aa2bdaa56cb2d05bbf2a6af57e440f9661c7f0 /net/http/http_byte_range.cc
parente40cbca89ebc83b5bef0f892d80604b00a98abc8 (diff)
downloadchromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.zip
chromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.tar.gz
chromium_src-13fc893acb88fdd82ad7eea72f9499d123bf5a89.tar.bz2
Switch to standard integer types in net/.
BUG=488550 TBR=mmenke@chromium.org Review URL: https://codereview.chromium.org/1535363003 . Cr-Commit-Position: refs/heads/master@{#366297}
Diffstat (limited to 'net/http/http_byte_range.cc')
-rw-r--r--net/http/http_byte_range.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/http/http_byte_range.cc b/net/http/http_byte_range.cc
index b43cb2e..ad12fa9 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_)