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

Unified Diff: net/http/http_version.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/http/http_util_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_version.h
diff --git a/net/http/http_version.h b/net/http/http_version.h
index 127e7115bf9966614963d3403b4e570a884a79c4..13864a65c60e1b13880cb003bc502df81015d9df 100644
--- a/net/http/http_version.h
+++ b/net/http/http_version.h
@@ -5,7 +5,7 @@
#ifndef NET_HTTP_HTTP_VERSION_H_
#define NET_HTTP_HTTP_VERSION_H_
-#include "base/basictypes.h"
+#include <stdint.h>
namespace net {
@@ -16,17 +16,13 @@ class HttpVersion {
HttpVersion() : value_(0) { }
// Build from unsigned major/minor pair.
- HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { }
+ HttpVersion(uint16_t major, uint16_t minor) : value_(major << 16 | minor) {}
// Major version number.
- uint16 major_value() const {
- return value_ >> 16;
- }
+ uint16_t major_value() const { return value_ >> 16; }
// Minor version number.
- uint16 minor_value() const {
- return value_ & 0xffff;
- }
+ uint16_t minor_value() const { return value_ & 0xffff; }
// Overloaded operators:
@@ -50,7 +46,7 @@ class HttpVersion {
}
private:
- uint32 value_; // Packed as <major>:<minor>
+ uint32_t value_; // Packed as <major>:<minor>
};
} // namespace net
« no previous file with comments | « net/http/http_util_unittest.cc ('k') | net/http/md4.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698