diff options
author | Avi Drissman <avi@chromium.org> | 2015-12-19 23:40:46 -0500 |
---|---|---|
committer | Avi Drissman <avi@chromium.org> | 2015-12-20 04:42:28 +0000 |
commit | 13fc893acb88fdd82ad7eea72f9499d123bf5a89 (patch) | |
tree | 76aa2bdaa56cb2d05bbf2a6af57e440f9661c7f0 /net/http/http_byte_range.h | |
parent | e40cbca89ebc83b5bef0f892d80604b00a98abc8 (diff) | |
download | chromium_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.h')
-rw-r--r-- | net/http/http_byte_range.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/net/http/http_byte_range.h b/net/http/http_byte_range.h index 63c02f1..f831874 100644 --- a/net/http/http_byte_range.h +++ b/net/http/http_byte_range.h @@ -5,9 +5,10 @@ #ifndef NET_HTTP_HTTP_BYTE_RANGE_H_ #define NET_HTTP_HTTP_BYTE_RANGE_H_ +#include <stdint.h> + #include <string> -#include "base/basictypes.h" #include "net/base/net_export.h" namespace net { @@ -20,21 +21,21 @@ class NET_EXPORT HttpByteRange { HttpByteRange(); // Convenience constructors. - static HttpByteRange Bounded(int64 first_byte_position, - int64 last_byte_position); - static HttpByteRange RightUnbounded(int64 first_byte_position); - static HttpByteRange Suffix(int64 suffix_length); + static HttpByteRange Bounded(int64_t first_byte_position, + int64_t last_byte_position); + static HttpByteRange RightUnbounded(int64_t first_byte_position); + static HttpByteRange Suffix(int64_t suffix_length); // Since this class is POD, we use constructor, assignment operator // and destructor provided by compiler. - int64 first_byte_position() const { return first_byte_position_; } - void set_first_byte_position(int64 value) { first_byte_position_ = value; } + int64_t first_byte_position() const { return first_byte_position_; } + void set_first_byte_position(int64_t value) { first_byte_position_ = value; } - int64 last_byte_position() const { return last_byte_position_; } - void set_last_byte_position(int64 value) { last_byte_position_ = value; } + int64_t last_byte_position() const { return last_byte_position_; } + void set_last_byte_position(int64_t value) { last_byte_position_ = value; } - int64 suffix_length() const { return suffix_length_; } - void set_suffix_length(int64 value) { suffix_length_ = value; } + int64_t suffix_length() const { return suffix_length_; } + void set_suffix_length(int64_t value) { suffix_length_ = value; } // Returns true if this is a suffix byte range. bool IsSuffixByteRange() const; @@ -57,12 +58,12 @@ class NET_EXPORT HttpByteRange { // no side effect. // Returns false if this method is called more than once and there will be // no side effect. - bool ComputeBounds(int64 size); + bool ComputeBounds(int64_t size); private: - int64 first_byte_position_; - int64 last_byte_position_; - int64 suffix_length_; + int64_t first_byte_position_; + int64_t last_byte_position_; + int64_t suffix_length_; bool has_computed_bounds_; }; |