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

Issue 9101011: [net/dns] Refactoring of job dispatch in HostResolverImpl in preparation for DnsTransactionFactory. (Closed)

Created:
8 years, 11 months ago by szym
Modified:
8 years, 10 months ago
Reviewers:
cbentzel, mmenke1, eroman, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

[net/dns] Refactoring of job dispatch in HostResolverImpl in preparation for DnsTransactionFactory. - Replaces JobPool with PrioritizedDispatcher. - Separates Job which aggregates Requests from ProcTask which executes on WorkerPool. - Queues Jobs rather than Requests before dispatching them. (So that we can queue before DnsTransactionFactory and then before ProcTask.) This is the second CL in series to merge AsyncHostResolver into HostResolverImpl. BUG=107880 TEST=waterfall Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120114

Patch Set 1 #

Patch Set 2 : Fixed use of MutableSetPort. #

Total comments: 40

Patch Set 3 : Addressed review: introduced CallSystemHostResolverProc, moved statics to anon namespace, ...' #

Total comments: 31

Patch Set 4 : Responded to code review; added TODOs for things bumped to another CL. #

Total comments: 1

Patch Set 5 : Rebased to master. #

Patch Set 6 : Fixes to NetLog issues. #

Patch Set 7 : inc(Copyright Year) #

Patch Set 8 : Fixed license header for the presubmit check.' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+984 lines, -1011 lines) Patch
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/net/passive_log_collector.h View 1 2 3 4 5 6 3 chunks +26 lines, -9 lines 0 comments Download
M chrome/browser/net/passive_log_collector.cc View 1 2 3 4 5 6 5 chunks +42 lines, -12 lines 0 comments Download
M chrome/browser/resources/net_internals/events_view.css View 1 2 3 4 5 6 7 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/resources/net_internals/source_entry.js View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M net/base/host_resolver.h View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 chunks +78 lines, -192 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 33 chunks +666 lines, -682 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 15 chunks +75 lines, -71 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 3 4 4 chunks +64 lines, -22 lines 0 comments Download
M net/base/net_log_source_type_list.h View 1 2 3 4 5 6 2 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
szym
Moved from http://codereview.chromium.org/8965025/
8 years, 11 months ago (2012-01-06 21:58:18 UTC) #1
cbentzel
Matt - I definitely defer to you on the NetLog stuff. It would also probably ...
8 years, 11 months ago (2012-01-09 16:05:18 UTC) #2
mmenke
http://codereview.chromium.org/9101011/diff/3003/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/3003/net/base/host_resolver_impl.cc#newcode135 net/base/host_resolver_impl.cc:135: NetLog* net_log) { nit: Just to reduce code duplication, ...
8 years, 11 months ago (2012-01-09 16:57:23 UTC) #3
szym
Thanks for the review. I added some explanations and potential resolution ideas. http://codereview.chromium.org/9101011/diff/3003/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc ...
8 years, 11 months ago (2012-01-09 17:06:59 UTC) #4
cbentzel
http://codereview.chromium.org/9101011/diff/3003/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/3003/net/base/host_resolver_impl.cc#newcode1049 net/base/host_resolver_impl.cc:1049: req->MarkAsCanceled(); On 2012/01/09 17:06:59, szym wrote: > On 2012/01/09 ...
8 years, 11 months ago (2012-01-09 20:02:57 UTC) #5
szym
cbentzel, mmenke: Thanks for the review. eroman: PTAL. This CL does not change the external ...
8 years, 11 months ago (2012-01-09 23:45:18 UTC) #6
szym
On 2012/01/09 23:45:18, szym wrote: > cbentzel, mmenke: Thanks for the review. > > eroman: ...
8 years, 11 months ago (2012-01-17 17:58:59 UTC) #7
cbentzel
LGTM I did not review the NetLog changes in depth - please have Matt approve ...
8 years, 11 months ago (2012-01-25 19:05:57 UTC) #8
mmenke
http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode143 net/base/host_resolver_impl.cc:143: os_error); Seems a little weird that SystemHostResolverProc is defined ...
8 years, 11 months ago (2012-01-26 16:54:10 UTC) #9
mmenke
http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode335 net/base/host_resolver_impl.cc:335: if ((counts_[req_priority] == 0u) && (highest_priority_ == req_priority)) { ...
8 years, 11 months ago (2012-01-27 04:12:37 UTC) #10
szym
http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode143 net/base/host_resolver_impl.cc:143: os_error); On 2012/01/26 16:54:10, Matt Menke wrote: > Seems ...
8 years, 11 months ago (2012-01-27 04:58:12 UTC) #11
mmenke
http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode530 net/base/host_resolver_impl.cc:530: job_net_log.AddEvent(NetLog::TYPE_HOST_RESOLVER_IMPL_PROC_TASK, On 2012/01/27 04:58:12, szym wrote: > On 2012/01/26 ...
8 years, 11 months ago (2012-01-27 05:08:44 UTC) #12
mmenke
http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode530 net/base/host_resolver_impl.cc:530: job_net_log.AddEvent(NetLog::TYPE_HOST_RESOLVER_IMPL_PROC_TASK, On 2012/01/27 05:08:44, Matt Menke wrote: > On ...
8 years, 11 months ago (2012-01-27 05:11:32 UTC) #13
szym
Thanks for the review. PTAL at the new logic of ProcTask::OnLookupComplete. http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): ...
8 years, 10 months ago (2012-02-01 17:23:51 UTC) #14
szym
I broke something and tests are failing. Fixing.
8 years, 10 months ago (2012-02-01 18:14:22 UTC) #15
mmenke1
LGTM http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/9101011/diff/11001/net/base/host_resolver_impl.cc#newcode143 net/base/host_resolver_impl.cc:143: os_error); On 2012/02/01 17:23:51, szym wrote: > On ...
8 years, 10 months ago (2012-02-01 18:19:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9101011/33016
8 years, 10 months ago (2012-02-01 19:59:21 UTC) #17
commit-bot: I haz the power
Presubmit check for 9101011-33016 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-01 19:59:28 UTC) #18
mmenke
Sorry, LGTMed it from the wrong account.
8 years, 10 months ago (2012-02-01 20:06:42 UTC) #19
szym
On 2012/02/01 20:06:42, Matt Menke wrote: > Sorry, LGTMed it from the wrong account. Thanks! ...
8 years, 10 months ago (2012-02-01 20:07:39 UTC) #20
mmenke
On 2012/02/01 20:07:39, szym wrote: > On 2012/02/01 20:06:42, Matt Menke wrote: > > Sorry, ...
8 years, 10 months ago (2012-02-01 20:11:34 UTC) #21
szym
On 2012/02/01 20:11:34, Matt Menke wrote: > On 2012/02/01 20:07:39, szym wrote: > > On ...
8 years, 10 months ago (2012-02-01 20:15:10 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9101011/33023
8 years, 10 months ago (2012-02-01 20:21:47 UTC) #23
commit-bot: I haz the power
8 years, 10 months ago (2012-02-01 22:28:23 UTC) #24
Change committed as 120114

Powered by Google App Engine
This is Rietveld 408576698