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

Issue 2369373002: LogDnsClient now returns some errors synchronously (Closed)

Created:
4 years, 2 months ago by Rob Percival
Modified:
4 years, 2 months ago
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, Eran Messeri
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LogDnsClient now returns some errors synchronously This allows users to handle issues, such as throttling, immediately. Uses a sync-async DoLoop pattern internally now. BUG=624894 Committed: https://crrev.com/cfe43126e0716d7626175dd0c4cac9a12863a50b Cr-Commit-Position: refs/heads/master@{#426451}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Rebase #

Patch Set 3 : Addresses Eran's comments #

Patch Set 4 : Change int to net::Error #

Total comments: 16

Patch Set 5 : Rebase and minor refactoring #

Patch Set 6 : Addresses Eran's comments #

Total comments: 27

Patch Set 7 : Rebase #

Patch Set 8 : Addresses some of Ryan's comments #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Total comments: 6

Patch Set 11 : Rebase #

Patch Set 12 : Emulate HostResolver more closely #

Total comments: 8

Patch Set 13 : Rebase #

Patch Set 14 : Addresses Eran's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+442 lines, -475 lines) Patch
M components/certificate_transparency/log_dns_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +34 lines, -27 lines 0 comments Download
M components/certificate_transparency/log_dns_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +228 lines, -175 lines 0 comments Download
M components/certificate_transparency/log_dns_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +180 lines, -273 lines 0 comments Download

Messages

Total messages: 67 (53 generated)
Rob Percival
PTAL.
4 years, 2 months ago (2016-09-27 17:44:51 UTC) #3
Eran Messeri
Overall design and implementation of the DoLoop pattern seems solid, left a few minor comments. ...
4 years, 2 months ago (2016-09-28 13:44:09 UTC) #11
Rob Percival
https://codereview.chromium.org/2369373002/diff/1/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/1/components/certificate_transparency/log_dns_client.cc#newcode109 components/certificate_transparency/log_dns_client.cc:109: // If a query was already in progress, this ...
4 years, 2 months ago (2016-09-28 16:19:14 UTC) #12
Eran Messeri
lgtm % a few comments, mostly regarding the tests. https://codereview.chromium.org/2369373002/diff/60001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/60001/components/certificate_transparency/log_dns_client.cc#newcode113 components/certificate_transparency/log_dns_client.cc:113: ...
4 years, 2 months ago (2016-09-30 09:26:52 UTC) #17
Rob Percival
PTAL https://codereview.chromium.org/2369373002/diff/60001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/60001/components/certificate_transparency/log_dns_client.cc#newcode113 components/certificate_transparency/log_dns_client.cc:113: // The leaf hash and callback will be ...
4 years, 2 months ago (2016-09-30 12:03:21 UTC) #21
Ryan Sleevi
https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.cc#newcode93 components/certificate_transparency/log_dns_client.cc:93: AuditProofQuery(net::DnsClient* dns_client, The choice to integrate both the definition ...
4 years, 2 months ago (2016-10-03 23:38:47 UTC) #24
Rob Percival
https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.cc#newcode93 components/certificate_transparency/log_dns_client.cc:93: AuditProofQuery(net::DnsClient* dns_client, On 2016/10/03 23:38:47, Ryan Sleevi (slow) wrote: ...
4 years, 2 months ago (2016-10-04 18:35:40 UTC) #25
Ryan Sleevi
LGTM as is, with a few nits. I can buy the State enum change as ...
4 years, 2 months ago (2016-10-07 15:37:31 UTC) #42
Rob Percival
https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.h File components/certificate_transparency/log_dns_client.h (right): https://codereview.chromium.org/2369373002/diff/120001/components/certificate_transparency/log_dns_client.h#newcode86 components/certificate_transparency/log_dns_client.h:86: net::Error QueryAuditProof(base::StringPiece domain_for_log, On 2016/10/04 18:35:40, Rob Percival wrote: ...
4 years, 2 months ago (2016-10-12 16:18:43 UTC) #46
Eran Messeri
still lgtm. I find the use of Variadic Templates in the test a bit unnecessary, ...
4 years, 2 months ago (2016-10-14 11:05:13 UTC) #56
Rob Percival
https://codereview.chromium.org/2369373002/diff/300001/components/certificate_transparency/log_dns_client.cc File components/certificate_transparency/log_dns_client.cc (right): https://codereview.chromium.org/2369373002/diff/300001/components/certificate_transparency/log_dns_client.cc#newcode117 components/certificate_transparency/log_dns_client.cc:117: net::ct::MerkleAuditProof* proof); On 2016/10/14 11:05:13, Eran Messeri wrote: > ...
4 years, 2 months ago (2016-10-20 10:49:08 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2369373002/360001
4 years, 2 months ago (2016-10-20 11:32:53 UTC) #64
commit-bot: I haz the power
Committed patchset #14 (id:360001)
4 years, 2 months ago (2016-10-20 11:39:35 UTC) #65
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:27 UTC) #67
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/cfe43126e0716d7626175dd0c4cac9a12863a50b
Cr-Commit-Position: refs/heads/master@{#426451}

Powered by Google App Engine
This is Rietveld 408576698