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

Unified Diff: net/dns/host_resolver.h

Issue 238433003: Provide Shill IP Address to myIpAddress() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + feedback Created 6 years, 6 months 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 | « chromeos/network/network_state_handler_observer.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_resolver.h
diff --git a/net/dns/host_resolver.h b/net/dns/host_resolver.h
index 2964fe600df6284e852cd7cdf29db72d9bd2c9e7..5216329548c6b9d82cd5ae5c3f3b98eedde00a5d 100644
--- a/net/dns/host_resolver.h
+++ b/net/dns/host_resolver.h
@@ -13,6 +13,7 @@
#include "net/base/host_port_pair.h"
#include "net/base/net_export.h"
#include "net/base/net_util.h"
+#include "net/base/prioritized_dispatcher.h"
#include "net/base/request_priority.h"
namespace base {
@@ -48,6 +49,8 @@ class NET_EXPORT HostResolver {
struct NET_EXPORT Options {
Options();
+ PrioritizedDispatcher::Limits GetDispatcherLimits() const;
+
size_t max_concurrent_resolves;
size_t max_retry_attempts;
bool enable_caching;
@@ -105,13 +108,11 @@ class NET_EXPORT HostResolver {
// Opaque type used to cancel a request.
typedef void* RequestHandle;
- // This value can be passed into CreateSystemResolver as the
- // |max_concurrent_resolves| parameter. It will select a default level of
- // concurrency.
+ // Set Options.max_concurrent_resolves to this to select a default level
+ // of concurrency.
static const size_t kDefaultParallelism = 0;
- // This value can be passed into CreateSystemResolver as the
- // |max_retry_attempts| parameter.
+ // Set Options.max_retry_attempts to this to select a default retry value.
static const size_t kDefaultRetryAttempts = -1;
// If any completion callbacks are pending when the resolver is destroyed,
« no previous file with comments | « chromeos/network/network_state_handler_observer.cc ('k') | net/dns/host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698