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

Unified Diff: net/dns/host_resolver_impl.cc

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/host_resolver_impl.h ('k') | net/dns/host_resolver_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver_impl.cc
diff --git a/net/dns/host_resolver_impl.cc b/net/dns/host_resolver_impl.cc
index 2d2a06b5ecb57d3ca5361e7395fe1f179d0d6022..a4af057955c0a0c8792077a52ed4f55f0969c44f 100644
--- a/net/dns/host_resolver_impl.cc
+++ b/net/dns/host_resolver_impl.cc
@@ -14,13 +14,13 @@
#include <utility>
#include <vector>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/debug/debugger.h"
#include "base/debug/stack_trace.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
@@ -217,7 +217,7 @@ bool IsGloballyReachable(const IPAddressNumber& dest,
bool is_link_local = (address[0] == 0xFE) && ((address[1] & 0xC0) == 0x80);
if (is_link_local)
return false;
- const uint8 kTeredoPrefix[] = { 0x20, 0x01, 0, 0 };
+ const uint8_t kTeredoPrefix[] = {0x20, 0x01, 0, 0};
bool is_teredo = std::equal(kTeredoPrefix,
kTeredoPrefix + arraysize(kTeredoPrefix),
address.begin());
@@ -288,7 +288,7 @@ bool ConfigureAsyncDnsNoFallbackFieldTrial() {
//-----------------------------------------------------------------------------
-AddressList EnsurePortOnAddressList(const AddressList& list, uint16 port) {
+AddressList EnsurePortOnAddressList(const AddressList& list, uint16_t port) {
if (list.empty() || list.front().port() == port)
return list;
return AddressList::CopyWithPort(list, port);
@@ -315,7 +315,7 @@ bool IsAllIPv4Loopback(const AddressList& addresses) {
// Creates NetLog parameters when the resolve failed.
scoped_ptr<base::Value> NetLogProcTaskFailedCallback(
- uint32 attempt_number,
+ uint32_t attempt_number,
int net_error,
int os_error,
NetLogCaptureMode /* capture_mode */) {
@@ -696,7 +696,7 @@ class HostResolverImpl::ProcTask
// may no longer exist. Multiple DoLookups() could be running in parallel, so
// any state inside of |this| must not mutate .
void DoLookup(const base::TimeTicks& start_time,
- const uint32 attempt_number) {
+ const uint32_t attempt_number) {
AddressList results;
int os_error = 0;
// Running on the worker thread
@@ -742,7 +742,7 @@ class HostResolverImpl::ProcTask
// Callback for when DoLookup() completes (runs on task runner thread).
void OnLookupComplete(const AddressList& results,
const base::TimeTicks& start_time,
- const uint32 attempt_number,
+ const uint32_t attempt_number,
int error,
const int os_error) {
DCHECK(task_runner_->BelongsToCurrentThread());
@@ -875,7 +875,7 @@ class HostResolverImpl::ProcTask
}
void RecordAttemptHistograms(const base::TimeTicks& start_time,
- const uint32 attempt_number,
+ const uint32_t attempt_number,
const int error,
const int os_error) const {
DCHECK(task_runner_->BelongsToCurrentThread());
@@ -943,11 +943,11 @@ class HostResolverImpl::ProcTask
// Keeps track of the number of attempts we have made so far to resolve the
// host. Whenever we start an attempt to resolve the host, we increase this
// number.
- uint32 attempt_number_;
+ uint32_t attempt_number_;
// The index of the attempt which finished first (or 0 if the job is still in
// progress).
- uint32 completed_attempt_number_;
+ uint32_t completed_attempt_number_;
// The result (a net error code) from the first attempt to complete.
int completed_attempt_error_;
« no previous file with comments | « net/dns/host_resolver_impl.h ('k') | net/dns/host_resolver_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698