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

Unified Diff: net/dns/dns_response.h

Issue 1492403002: Remove kuint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: http security header file 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/disk_cache/blockfile/file_posix.cc ('k') | net/dns/dns_response.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_response.h
diff --git a/net/dns/dns_response.h b/net/dns/dns_response.h
index 6e67b5dea97026d17f541dc5a3605ebb3e4b57ec..24071ca2f7abe6957e9a2fce7297e8a2e5db6b5a 100644
--- a/net/dns/dns_response.h
+++ b/net/dns/dns_response.h
@@ -5,9 +5,11 @@
#ifndef NET_DNS_DNS_RESPONSE_H_
#define NET_DNS_DNS_RESPONSE_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string_piece.h"
#include "base/time/time.h"
@@ -29,9 +31,9 @@ struct NET_EXPORT_PRIVATE DnsResourceRecord {
~DnsResourceRecord();
std::string name; // in dotted form
- uint16 type;
- uint16 klass;
- uint32 ttl;
+ uint16_t type;
+ uint16_t klass;
+ uint32_t ttl;
base::StringPiece rdata; // points to the original response buffer
};
@@ -127,15 +129,15 @@ class NET_EXPORT_PRIVATE DnsResponse {
// All of the methods below are valid only if the response is valid.
// Accessors for the header.
- uint16 flags() const; // excluding rcode
- uint8 rcode() const;
+ uint16_t flags() const; // excluding rcode
+ uint8_t rcode() const;
unsigned answer_count() const;
unsigned additional_answer_count() const;
// Accessors to the question. The qname is unparsed.
base::StringPiece qname() const;
- uint16 qtype() const;
+ uint16_t qtype() const;
// Returns qname in dotted format.
std::string GetDottedName() const;
« no previous file with comments | « net/disk_cache/blockfile/file_posix.cc ('k') | net/dns/dns_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698