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

Issue 2953483003: Add HostCachePersistenceManager for Cronet (Closed)

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

Description

Add HostCachePersistenceManager for Cronet HostCachePersistenceManager handles the interaction between HostCache and prefs for persistence. It batches writes to avoid writing to prefs too often. This implementation is Cronet-specific because it uses the same sequence for interactions with network and prefs code. BUG=605149 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2953483003 Cr-Commit-Position: refs/heads/master@{#482001} Committed: https://chromium.googlesource.com/chromium/src/+/983dbf87d4b115593d648e58f86b336401945647

Patch Set 1 #

Total comments: 16

Patch Set 2 : address comments #

Total comments: 12

Patch Set 3 : more comments #

Patch Set 4 : move constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -16 lines) Patch
M components/cronet/android/BUILD.gn View 3 chunks +4 lines, -0 lines 0 comments Download
A components/cronet/host_cache_persistence_manager.h View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A components/cronet/host_cache_persistence_manager.cc View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A components/cronet/host_cache_persistence_manager_unittest.cc View 1 2 3 1 chunk +182 lines, -0 lines 0 comments Download
M net/dns/host_cache.h View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M net/dns/host_cache.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M net/dns/host_cache_unittest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M net/log/net_log_util.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
mgersh
PTAL
3 years, 6 months ago (2017-06-21 12:33:11 UTC) #4
mgersh
Paul, PTAL. Helen suggested that I add you. There's a public copy of the design ...
3 years, 6 months ago (2017-06-22 14:25:10 UTC) #6
pauljensen
https://codereview.chromium.org/2953483003/diff/20001/components/cronet/host_cache_persistence_manager.cc File components/cronet/host_cache_persistence_manager.cc (right): https://codereview.chromium.org/2953483003/diff/20001/components/cronet/host_cache_persistence_manager.cc#newcode50 components/cronet/host_cache_persistence_manager.cc:50: cache_->set_persistence_delegate(nullptr); I feel like either there should be a ...
3 years, 6 months ago (2017-06-22 19:03:51 UTC) #7
mgersh
https://codereview.chromium.org/2953483003/diff/20001/components/cronet/host_cache_persistence_manager.cc File components/cronet/host_cache_persistence_manager.cc (right): https://codereview.chromium.org/2953483003/diff/20001/components/cronet/host_cache_persistence_manager.cc#newcode50 components/cronet/host_cache_persistence_manager.cc:50: cache_->set_persistence_delegate(nullptr); On 2017/06/22 19:03:50, pauljensen wrote: > I feel ...
3 years, 6 months ago (2017-06-22 21:27:33 UTC) #8
pauljensen
https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager.cc File components/cronet/host_cache_persistence_manager.cc (right): https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager.cc#newcode71 components/cronet/host_cache_persistence_manager.cc:71: std::unique_ptr<base::ListValue> value = cache_->GetAsListValue(false); I'd prefer if GetAsListValue() took ...
3 years, 6 months ago (2017-06-23 14:10:31 UTC) #9
mgersh
https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager.cc File components/cronet/host_cache_persistence_manager.cc (right): https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager.cc#newcode71 components/cronet/host_cache_persistence_manager.cc:71: std::unique_ptr<base::ListValue> value = cache_->GetAsListValue(false); On 2017/06/23 14:10:31, pauljensen wrote: ...
3 years, 6 months ago (2017-06-23 16:02:06 UTC) #10
pauljensen
https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager_unittest.cc File components/cronet/host_cache_persistence_manager_unittest.cc (right): https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager_unittest.cc#newcode19 components/cronet/host_cache_persistence_manager_unittest.cc:19: const char kPrefName[] = "net.test"; On 2017/06/23 16:02:06, mgersh ...
3 years, 6 months ago (2017-06-23 17:39:31 UTC) #11
mgersh
https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager_unittest.cc File components/cronet/host_cache_persistence_manager_unittest.cc (right): https://codereview.chromium.org/2953483003/diff/40001/components/cronet/host_cache_persistence_manager_unittest.cc#newcode19 components/cronet/host_cache_persistence_manager_unittest.cc:19: const char kPrefName[] = "net.test"; On 2017/06/23 17:39:31, pauljensen ...
3 years, 6 months ago (2017-06-23 18:08:09 UTC) #12
pauljensen
lgtm
3 years, 6 months ago (2017-06-23 18:23:52 UTC) #13
xunjieli
Removing myself. Sorry, I am a bit overloaded with other things atm. Paul has more ...
3 years, 6 months ago (2017-06-23 18:34:17 UTC) #16
mgersh
Thanks for the review!
3 years, 6 months ago (2017-06-23 18:36:07 UTC) #17
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/2953483003/80001
3 years, 6 months ago (2017-06-23 18:36:27 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 20:17:17 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/983dbf87d4b115593d648e58f86b...

Powered by Google App Engine
This is Rietveld 408576698