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

Unified Diff: net/dns/record_parsed.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/dns/notify_watcher_mac.h ('k') | net/dns/record_parsed.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/record_parsed.h
diff --git a/net/dns/record_parsed.h b/net/dns/record_parsed.h
index 016c4910bfb21045c9792a2f01d9c63ba39608c1..654574cc26e611968a1bbd81b757938fa1154113 100644
--- a/net/dns/record_parsed.h
+++ b/net/dns/record_parsed.h
@@ -5,6 +5,8 @@
#ifndef NET_DNS_RECORD_PARSED_H_
#define NET_DNS_RECORD_PARSED_H_
+#include <stdint.h>
+
#include <string>
#include "base/memory/scoped_ptr.h"
@@ -27,9 +29,9 @@ class NET_EXPORT_PRIVATE RecordParsed {
base::Time time_created);
const std::string& name() const { return name_; }
- uint16 type() const { return type_; }
- uint16 klass() const { return klass_; }
- uint32 ttl() const { return ttl_; }
+ uint16_t type() const { return type_; }
+ uint16_t klass() const { return klass_; }
+ uint32_t ttl() const { return ttl_; }
base::Time time_created() const { return time_created_; }
@@ -45,14 +47,17 @@ class NET_EXPORT_PRIVATE RecordParsed {
bool IsEqual(const RecordParsed* other, bool is_mdns) const;
private:
- RecordParsed(const std::string& name, uint16 type, uint16 klass,
- uint32 ttl, scoped_ptr<const RecordRdata> rdata,
+ RecordParsed(const std::string& name,
+ uint16_t type,
+ uint16_t klass,
+ uint32_t ttl,
+ scoped_ptr<const RecordRdata> rdata,
base::Time time_created);
std::string name_; // in dotted form
- const uint16 type_;
- const uint16 klass_;
- const uint32 ttl_;
+ const uint16_t type_;
+ const uint16_t klass_;
+ const uint32_t ttl_;
const scoped_ptr<const RecordRdata> rdata_;
« no previous file with comments | « net/dns/notify_watcher_mac.h ('k') | net/dns/record_parsed.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698