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

Issue 11359007: [net] Make HostResolverImpl::OnIPAddressChange faster by removing blocking on HaveOnlyLoopbackAddre… (Closed)

Created:
8 years, 1 month ago by szym
Modified:
8 years, 1 month ago
Reviewers:
eroman
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

[net] Make HostResolverImpl::OnIPAddressChange faster by removing blocking on HaveOnlyLoopbackAddresses. Also simplify HostResolverImpl::IPv6ProbeJob by using MessageLoop::PostTaskAndReply with a WeakPtr. BUG=157933 TEST=manual, disable/enable network connection Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=166150

Patch Set 1 #

Patch Set 2 : use separate WeakPtrFactory for ProbeJobs #

Patch Set 3 : cleanup #

Total comments: 4

Patch Set 4 : replace refcounting with Unretained/Owned #

Patch Set 5 : use ipv6_probe_monitoring_ as a cancellation flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -130 lines) Patch
M net/base/host_resolver_impl.h View 1 2 3 4 5 chunks +5 lines, -8 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 11 chunks +75 lines, -122 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
szym
8 years, 1 month ago (2012-10-31 22:59:54 UTC) #1
szym
The situation is a bit wasteful because the initial call to ProbeIPv6Support invokes OnIPAddressChanged which ...
8 years, 1 month ago (2012-11-01 16:29:33 UTC) #2
eroman
lgtm http://codereview.chromium.org/11359007/diff/14/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/11359007/diff/14/net/base/host_resolver_impl.cc#newcode938 net/base/host_resolver_impl.cc:938: : public base::RefCountedThreadSafe<HostResolverImpl::LoopbackProbeJob> { you may consider not ...
8 years, 1 month ago (2012-11-03 00:56:55 UTC) #3
szym
http://codereview.chromium.org/11359007/diff/14/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/11359007/diff/14/net/base/host_resolver_impl.cc#newcode938 net/base/host_resolver_impl.cc:938: : public base::RefCountedThreadSafe<HostResolverImpl::LoopbackProbeJob> { On 2012/11/03 00:56:55, eroman wrote: ...
8 years, 1 month ago (2012-11-05 23:08:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/11359007/10005
8 years, 1 month ago (2012-11-06 03:39:57 UTC) #5
commit-bot: I haz the power
8 years, 1 month ago (2012-11-06 04:44:19 UTC) #6
Change committed as 166150

Powered by Google App Engine
This is Rietveld 408576698