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

Issue 892393005: Implement browser-side host resolver Mojo service. (Closed)

Created:
5 years, 10 months ago by Anand Mistry (off Chromium)
Modified:
5 years, 10 months ago
Reviewers:
Sam McNally, eroman, jamesr
CC:
chromium-reviews, cbentzel+watch_chromium.org, Randy Smith (Not in Mondays), chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@v8-pac-interfaces
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement browser-side host resolver Mojo service. BUG=11746 Committed: https://crrev.com/7e6ebfdc8f3536dc0246fcec458b27cdd836c3b5 Cr-Commit-Position: refs/heads/master@{#316160}

Patch Set 1 #

Patch Set 2 : Rebase and clean up. #

Patch Set 3 : Fix windows? #

Patch Set 4 : Windows? #

Patch Set 5 : Windows? Again! #

Total comments: 44

Patch Set 6 : Address review comments. #

Total comments: 8

Patch Set 7 : Remove polling from test. #

Patch Set 8 : More review comments. #

Total comments: 2

Patch Set 9 : Change VLOG and remove unnecessary WeakPtr. #

Total comments: 8

Patch Set 10 : More review comments. #

Patch Set 11 : Rebase. #

Total comments: 7

Patch Set 12 : More comments. #

Total comments: 4

Patch Set 13 : Use InterfaceRequest<> #

Total comments: 8

Patch Set 14 : Change static_library to source_set. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -4 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +39 lines, -0 lines 0 comments Download
M net/DEPS View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
A net/dns/mojo_host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
A net/dns/mojo_host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +130 lines, -0 lines 0 comments Download
A net/dns/mojo_host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +309 lines, -0 lines 0 comments Download
A net/dns/mojo_type_converters.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A net/dns/mojo_type_converters.cc View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -0 lines 0 comments Download
M net/interfaces/host_resolver_service.mojom View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/interfaces/proxy_resolver_service.mojom View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +43 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M net/test/run_all_unittests.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (7 generated)
Anand Mistry (off Chromium)
This is the DNS resolver service used by the proxy resolver. The intention is to ...
5 years, 10 months ago (2015-02-04 08:33:00 UTC) #2
eroman
Diving into this review today! But first as a related side-comment, is there going to ...
5 years, 10 months ago (2015-02-05 19:07:47 UTC) #3
eroman
https://codereview.chromium.org/892393005/diff/70001/net/dns/host_resolver_service_impl.cc File net/dns/host_resolver_service_impl.cc (right): https://codereview.chromium.org/892393005/diff/70001/net/dns/host_resolver_service_impl.cc#newcode41 net/dns/host_resolver_service_impl.cc:41: BoundNetLog net_log_; This is not actually initialized. Rather may ...
5 years, 10 months ago (2015-02-05 19:51:11 UTC) #4
Anand Mistry (off Chromium)
On 2015/02/05 19:07:47, eroman wrote: > Diving into this review today! > > But first ...
5 years, 10 months ago (2015-02-05 21:09:28 UTC) #5
Sam McNally
https://codereview.chromium.org/892393005/diff/70001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/70001/net/BUILD.gn#newcode800 net/BUILD.gn:800: defines = [ "NET_IMPLEMENTATION" ] Remove. https://codereview.chromium.org/892393005/diff/70001/net/BUILD.gn#newcode808 net/BUILD.gn:808: "//mojo/environment:chromium", ...
5 years, 10 months ago (2015-02-05 23:58:36 UTC) #6
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/70001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/70001/net/BUILD.gn#newcode800 net/BUILD.gn:800: defines = [ "NET_IMPLEMENTATION" ] On 2015/02/05 23:58:36, Sam ...
5 years, 10 months ago (2015-02-06 06:32:41 UTC) #7
Sam McNally
https://codereview.chromium.org/892393005/diff/90001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/90001/net/dns/mojo_host_resolver_impl.cc#newcode67 net/dns/mojo_host_resolver_impl.cc:67: size_t num_erased = pending_jobs_.erase(job); Please use the iterator erase ...
5 years, 10 months ago (2015-02-06 07:12:32 UTC) #8
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/90001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/90001/net/dns/mojo_host_resolver_impl.cc#newcode67 net/dns/mojo_host_resolver_impl.cc:67: size_t num_erased = pending_jobs_.erase(job); On 2015/02/06 07:12:32, Sam McNally ...
5 years, 10 months ago (2015-02-08 23:09:21 UTC) #9
Sam McNally
lgtm https://codereview.chromium.org/892393005/diff/130001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/130001/net/dns/mojo_host_resolver_impl.cc#newcode111 net/dns/mojo_host_resolver_impl.cc:111: VLOG(1) << address.ToString(); Is this meant to be ...
5 years, 10 months ago (2015-02-09 00:06:22 UTC) #10
Anand Mistry (off Chromium)
Also removed an unnecessary use of WeakPtr. https://codereview.chromium.org/892393005/diff/130001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/130001/net/dns/mojo_host_resolver_impl.cc#newcode111 net/dns/mojo_host_resolver_impl.cc:111: VLOG(1) << ...
5 years, 10 months ago (2015-02-09 04:23:40 UTC) #12
Anand Mistry (off Chromium)
eroman: Ping!
5 years, 10 months ago (2015-02-12 00:02:54 UTC) #13
eroman
Apologies for the delay, looking now!
5 years, 10 months ago (2015-02-12 00:09:03 UTC) #14
eroman
lgtm https://codereview.chromium.org/892393005/diff/150001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/150001/net/dns/mojo_host_resolver_impl.cc#newcode113 net/dns/mojo_host_resolver_impl.cc:113: if (result) Compare result == OK instead of ...
5 years, 10 months ago (2015-02-12 02:30:19 UTC) #15
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/150001/net/dns/mojo_host_resolver_impl.cc File net/dns/mojo_host_resolver_impl.cc (right): https://codereview.chromium.org/892393005/diff/150001/net/dns/mojo_host_resolver_impl.cc#newcode113 net/dns/mojo_host_resolver_impl.cc:113: if (result) On 2015/02/12 02:30:18, eroman wrote: > Compare ...
5 years, 10 months ago (2015-02-12 04:47:15 UTC) #17
Anand Mistry (off Chromium)
jamesr: Need an LGTM from you according to presubmit check: ** Presubmit Messages ** Missing ...
5 years, 10 months ago (2015-02-12 04:56:19 UTC) #19
jamesr
New DEPS lgtm but some of the code is using clearly deprecated APIs. Please don't ...
5 years, 10 months ago (2015-02-12 18:23:11 UTC) #20
eroman
https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn#newcode808 net/BUILD.gn:808: static_library("type_converters") { how about mojo_type_converts, to match the filenames.
5 years, 10 months ago (2015-02-12 18:43:34 UTC) #21
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn#newcode793 net/BUILD.gn:793: if (use_v8_in_net && !is_android) { On 2015/02/12 18:23:11, jamesr ...
5 years, 10 months ago (2015-02-12 22:54:09 UTC) #23
eroman
https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/190001/net/BUILD.gn#newcode793 net/BUILD.gn:793: if (use_v8_in_net && !is_android) { On 2015/02/12 22:54:08, Anand ...
5 years, 10 months ago (2015-02-12 22:57:04 UTC) #24
jamesr
https://codereview.chromium.org/892393005/diff/210001/net/dns/mojo_host_resolver_impl_unittest.cc File net/dns/mojo_host_resolver_impl_unittest.cc (right): https://codereview.chromium.org/892393005/diff/210001/net/dns/mojo_host_resolver_impl_unittest.cc#newcode28 net/dns/mojo_host_resolver_impl_unittest.cc:28: explicit TestRequestClient(interfaces::HostResolverRequestClientPtr* ptr) it's better for this sort of ...
5 years, 10 months ago (2015-02-12 22:58:25 UTC) #25
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/210001/net/dns/mojo_host_resolver_impl_unittest.cc File net/dns/mojo_host_resolver_impl_unittest.cc (right): https://codereview.chromium.org/892393005/diff/210001/net/dns/mojo_host_resolver_impl_unittest.cc#newcode28 net/dns/mojo_host_resolver_impl_unittest.cc:28: explicit TestRequestClient(interfaces::HostResolverRequestClientPtr* ptr) On 2015/02/12 22:58:25, jamesr wrote: > ...
5 years, 10 months ago (2015-02-12 23:42:28 UTC) #26
jamesr
lgtm https://codereview.chromium.org/892393005/diff/230001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/230001/net/BUILD.gn#newcode794 net/BUILD.gn:794: static_library("net_browser_services") { these should be source_set, not static_library. ...
5 years, 10 months ago (2015-02-13 00:59:54 UTC) #27
Anand Mistry (off Chromium)
https://codereview.chromium.org/892393005/diff/230001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/892393005/diff/230001/net/BUILD.gn#newcode794 net/BUILD.gn:794: static_library("net_browser_services") { On 2015/02/13 00:59:54, jamesr wrote: > these ...
5 years, 10 months ago (2015-02-13 02:29:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/892393005/250001
5 years, 10 months ago (2015-02-13 03:06:53 UTC) #31
commit-bot: I haz the power
Committed patchset #14 (id:250001)
5 years, 10 months ago (2015-02-13 04:19:23 UTC) #32
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 04:20:00 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/7e6ebfdc8f3536dc0246fcec458b27cdd836c3b5
Cr-Commit-Position: refs/heads/master@{#316160}

Powered by Google App Engine
This is Rietveld 408576698