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

Side by Side Diff: net/dns/host_resolver_impl.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 unified diff | Download patch
« no previous file with comments | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_DNS_HOST_RESOLVER_IMPL_H_ 5 #ifndef NET_DNS_HOST_RESOLVER_IMPL_H_
6 #define NET_DNS_HOST_RESOLVER_IMPL_H_ 6 #define NET_DNS_HOST_RESOLVER_IMPL_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <map> 11 #include <map>
9 12
10 #include "base/basictypes.h" 13 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
13 #include "base/threading/non_thread_safe.h" 16 #include "base/threading/non_thread_safe.h"
14 #include "base/time/time.h" 17 #include "base/time/time.h"
15 #include "net/base/ip_address_number.h" 18 #include "net/base/ip_address_number.h"
16 #include "net/base/net_export.h" 19 #include "net/base/net_export.h"
17 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
18 #include "net/dns/host_cache.h" 21 #include "net/dns/host_cache.h"
19 #include "net/dns/host_resolver.h" 22 #include "net/dns/host_resolver.h"
20 #include "net/dns/host_resolver_proc.h" 23 #include "net/dns/host_resolver_proc.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 88
86 // Maximum number retry attempts to resolve the hostname. 89 // Maximum number retry attempts to resolve the hostname.
87 // Pass HostResolver::kDefaultRetryAttempts to choose a default value. 90 // Pass HostResolver::kDefaultRetryAttempts to choose a default value.
88 size_t max_retry_attempts; 91 size_t max_retry_attempts;
89 92
90 // This is the limit after which we make another attempt to resolve the host 93 // This is the limit after which we make another attempt to resolve the host
91 // if the worker thread has not responded yet. 94 // if the worker thread has not responded yet.
92 base::TimeDelta unresponsive_delay; 95 base::TimeDelta unresponsive_delay;
93 96
94 // Factor to grow |unresponsive_delay| when we re-re-try. 97 // Factor to grow |unresponsive_delay| when we re-re-try.
95 uint32 retry_factor; 98 uint32_t retry_factor;
96 }; 99 };
97 100
98 // Creates a HostResolver as specified by |options|. 101 // Creates a HostResolver as specified by |options|.
99 // 102 //
100 // If Options.enable_caching is true, a cache is created using 103 // If Options.enable_caching is true, a cache is created using
101 // HostCache::CreateDefaultCache(). Otherwise no cache is used. 104 // HostCache::CreateDefaultCache(). Otherwise no cache is used.
102 // 105 //
103 // Options.GetDispatcherLimits() determines the maximum number of jobs that 106 // Options.GetDispatcherLimits() determines the maximum number of jobs that
104 // the resolver will run at once. This upper-bounds the total number of 107 // the resolver will run at once. This upper-bounds the total number of
105 // outstanding DNS transactions (not counting retransmissions and retries). 108 // outstanding DNS transactions (not counting retransmissions and retries).
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 base::WeakPtrFactory<HostResolverImpl> weak_ptr_factory_; 303 base::WeakPtrFactory<HostResolverImpl> weak_ptr_factory_;
301 304
302 base::WeakPtrFactory<HostResolverImpl> probe_weak_ptr_factory_; 305 base::WeakPtrFactory<HostResolverImpl> probe_weak_ptr_factory_;
303 306
304 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl); 307 DISALLOW_COPY_AND_ASSIGN(HostResolverImpl);
305 }; 308 };
306 309
307 } // namespace net 310 } // namespace net
308 311
309 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_ 312 #endif // NET_DNS_HOST_RESOLVER_IMPL_H_
OLDNEW
« no previous file with comments | « net/dns/host_resolver.h ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698