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

Issue 1961153003: Add pause/resume functionality to precache (Closed)

Created:
4 years, 7 months ago by bengr
Modified:
4 years, 7 months ago
Reviewers:
sclittle
CC:
chromium-reviews, darin-cc_chromium.org, jam, wifiprefetch-reviews_google.com, Raj
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add pause/resume functionality to precache This CL serializes an interrupted precache session to a database and resumes on the next opportunity that the task scheduler provides. BUG=610399 Committed: https://crrev.com/0bb5f835faf844ba31f602f6502b7c3f8db30624 Cr-Commit-Position: refs/heads/master@{#396358}

Patch Set 1 : #

Total comments: 32

Patch Set 2 : Added a proto #

Total comments: 20

Patch Set 3 : Cleaned up PrecacheFetcher constructor #

Total comments: 10

Patch Set 4 : Moved members to proto and updated UMA #

Total comments: 16

Patch Set 5 : Addressed comments #

Total comments: 2

Patch Set 6 : Fixed nit and gn #

Patch Set 7 : test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+998 lines, -236 lines) Patch
M chrome/browser/precache/precache_manager_factory.cc View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/precache.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/precache/content/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/precache/content/precache_manager.h View 1 2 3 5 chunks +15 lines, -1 line 0 comments Download
M components/precache/content/precache_manager.cc View 1 2 3 4 8 chunks +66 lines, -32 lines 0 comments Download
M components/precache/content/precache_manager_unittest.cc View 1 2 3 4 19 chunks +145 lines, -67 lines 0 comments Download
M components/precache/core/BUILD.gn View 1 3 chunks +4 lines, -0 lines 0 comments Download
M components/precache/core/fetcher_pool.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.h View 1 2 3 5 chunks +23 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 2 3 4 3 chunks +25 lines, -1 line 0 comments Download
M components/precache/core/precache_fetcher.h View 1 2 3 4 10 chunks +44 lines, -29 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 4 5 9 chunks +152 lines, -64 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 4 5 6 20 chunks +166 lines, -41 lines 0 comments Download
A components/precache/core/precache_session_table.h View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A components/precache/core/precache_session_table.cc View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A components/precache/core/precache_session_table_unittest.cc View 1 2 3 1 chunk +150 lines, -0 lines 0 comments Download
A components/precache/core/proto/unfinished_work.proto View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
bengr
sclittle@: PTAL
4 years, 7 months ago (2016-05-09 20:59:17 UTC) #3
sclittle
https://codereview.chromium.org/1961153003/diff/20001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/20001/components/precache/content/precache_manager.cc#newcode302 components/precache/content/precache_manager.cc:302: void PrecacheManager::OnInitDone() { Why is this method necessary? Couldn't ...
4 years, 7 months ago (2016-05-10 00:01:27 UTC) #5
bengr
https://codereview.chromium.org/1961153003/diff/20001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/20001/components/precache/content/precache_manager.cc#newcode302 components/precache/content/precache_manager.cc:302: void PrecacheManager::OnInitDone() { On 2016/05/10 00:01:26, sclittle wrote: > ...
4 years, 7 months ago (2016-05-19 01:25:44 UTC) #8
sclittle
preliminary comments, I'll take a closer look soon https://codereview.chromium.org/1961153003/diff/80001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/80001/components/precache/content/precache_manager.cc#newcode160 components/precache/content/precache_manager.cc:160: for ...
4 years, 7 months ago (2016-05-19 01:59:46 UTC) #9
bengr
https://codereview.chromium.org/1961153003/diff/80001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/80001/components/precache/content/precache_manager.cc#newcode160 components/precache/content/precache_manager.cc:160: for (int i = 0; i < unfinished_work_->top_host_size(); ++i) ...
4 years, 7 months ago (2016-05-19 23:19:32 UTC) #10
sclittle
https://codereview.chromium.org/1961153003/diff/100001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/100001/components/precache/content/precache_manager.cc#newcode164 components/precache/content/precache_manager.cc:164: history_service_->TopHosts( nit: indentation https://codereview.chromium.org/1961153003/diff/100001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1961153003/diff/100001/components/precache/core/precache_fetcher.cc#newcode328 components/precache/core/precache_fetcher.cc:328: ...
4 years, 7 months ago (2016-05-20 21:57:07 UTC) #13
bengr
https://codereview.chromium.org/1961153003/diff/100001/components/precache/content/precache_manager.cc File components/precache/content/precache_manager.cc (right): https://codereview.chromium.org/1961153003/diff/100001/components/precache/content/precache_manager.cc#newcode164 components/precache/content/precache_manager.cc:164: history_service_->TopHosts( On 2016/05/20 21:57:06, sclittle wrote: > nit: indentation ...
4 years, 7 months ago (2016-05-21 00:16:33 UTC) #15
sclittle
LGTM % minor nit https://codereview.chromium.org/1961153003/diff/200001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1961153003/diff/200001/components/precache/core/precache_fetcher.cc#newcode436 components/precache/core/precache_fetcher.cc:436: for (const auto& it : ...
4 years, 7 months ago (2016-05-23 20:42:04 UTC) #16
bengr
https://codereview.chromium.org/1961153003/diff/200001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/1961153003/diff/200001/components/precache/core/precache_fetcher.cc#newcode436 components/precache/core/precache_fetcher.cc:436: for (const auto& it : pool_.elements()) { On 2016/05/23 ...
4 years, 7 months ago (2016-05-25 21:44:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1961153003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1961153003/240001
4 years, 7 months ago (2016-05-25 21:45:40 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/218469)
4 years, 7 months ago (2016-05-25 22:04:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1961153003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1961153003/260001
4 years, 7 months ago (2016-05-27 00:19:45 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:260001)
4 years, 7 months ago (2016-05-27 02:25:11 UTC) #28
commit-bot: I haz the power
4 years, 7 months ago (2016-05-27 02:27:18 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0bb5f835faf844ba31f602f6502b7c3f8db30624
Cr-Commit-Position: refs/heads/master@{#396358}

Powered by Google App Engine
This is Rietveld 408576698