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

Issue 2943143002: Add PersistenceDelegate to HostCache (Closed)

Created:
3 years, 6 months ago by mgersh
Modified:
3 years, 6 months ago
Reviewers:
Julia Tuttle, mef
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add PersistenceDelegate to HostCache PersistenceDelegate is a new interface for persisting the contents of the HostCache. This commit includes the interface itself, the logic in HostCache for interacting with it, and a mock implementation of the interface for testing. It does not include support for immediate data removal since that won't be needed for the currently planned use case. BUG=605149 Review-Url: https://codereview.chromium.org/2943143002 Cr-Commit-Position: refs/heads/master@{#481015} Committed: https://chromium.googlesource.com/chromium/src/+/7c28e7988fef9bb3e03027226bd199736d99abc3

Patch Set 1 #

Total comments: 4

Patch Set 2 : check for change on clear #

Total comments: 8

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -8 lines) Patch
M net/dns/host_cache.h View 1 2 4 chunks +17 lines, -1 line 0 comments Download
M net/dns/host_cache.cc View 1 2 7 chunks +27 lines, -6 lines 0 comments Download
M net/dns/host_cache_unittest.cc View 1 2 4 chunks +85 lines, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
mgersh
I added an explanation of where I'm going with this at the bottom of the ...
3 years, 6 months ago (2017-06-16 17:01:45 UTC) #2
Julia Tuttle
Couple of suggestions. https://codereview.chromium.org/2943143002/diff/1/net/dns/host_cache.cc File net/dns/host_cache.cc (right): https://codereview.chromium.org/2943143002/diff/1/net/dns/host_cache.cc#newcode254 net/dns/host_cache.cc:254: if (delegate_) Maybe actually check if ...
3 years, 6 months ago (2017-06-16 17:04:55 UTC) #3
mgersh
https://codereview.chromium.org/2943143002/diff/1/net/dns/host_cache.cc File net/dns/host_cache.cc (right): https://codereview.chromium.org/2943143002/diff/1/net/dns/host_cache.cc#newcode254 net/dns/host_cache.cc:254: if (delegate_) On 2017/06/16 17:04:54, Julia Tuttle wrote: > ...
3 years, 6 months ago (2017-06-16 17:32:50 UTC) #4
mgersh
Looks like Julia isn't here today. Misha, can you look at this?
3 years, 6 months ago (2017-06-20 15:45:52 UTC) #6
mef
https://codereview.chromium.org/2943143002/diff/20001/net/dns/host_cache.cc File net/dns/host_cache.cc (right): https://codereview.chromium.org/2943143002/diff/20001/net/dns/host_cache.cc#newcode213 net/dns/host_cache.cc:213: bool result_changed; nit: Maybe initialize to false? nit: Maybe ...
3 years, 6 months ago (2017-06-20 16:18:13 UTC) #7
mgersh
https://codereview.chromium.org/2943143002/diff/20001/net/dns/host_cache.cc File net/dns/host_cache.cc (right): https://codereview.chromium.org/2943143002/diff/20001/net/dns/host_cache.cc#newcode213 net/dns/host_cache.cc:213: bool result_changed; On 2017/06/20 16:18:12, mef wrote: > nit: ...
3 years, 6 months ago (2017-06-20 17:16:30 UTC) #8
mef
lgtm
3 years, 6 months ago (2017-06-20 21:36:39 UTC) #9
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/2943143002/40001
3 years, 6 months ago (2017-06-20 21:37:35 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 23:13:26 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7c28e7988fef9bb3e03027226bd1...

Powered by Google App Engine
This is Rietveld 408576698