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

Issue 2357593002: Refactor the resource_prefetch_predictor. (Closed)

Created:
4 years, 3 months ago by alexilin
Modified:
4 years, 2 months ago
CC:
chromium-reviews, shishir+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor the resource_prefetch_predictor. This removes ResourceRow object and uses proto message ResourceData instead of it. It allows to get rid of the boilerplate conversion from the DB to an internal structure. Plus adds lost ResourceData::RESOURCE_TYPE_FONT_RESOURCE case in chrome/browser/ui/webui/predictors/predictors_handler.cc BUG=631966 Committed: https://crrev.com/68ebcad9d6ab7491ee1f2f5c5a28e7eac1c4987f Cr-Commit-Position: refs/heads/master@{#420935}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Minor changes #

Patch Set 3 : BUILD.gn after rebase #

Total comments: 5

Patch Set 4 : Simplify sorting #

Total comments: 2

Patch Set 5 : Nit fix #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+396 lines, -424 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 5 chunks +62 lines, -50 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 2 3 4 chunks +8 lines, -39 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 2 3 7 chunks +52 lines, -144 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 8 chunks +78 lines, -87 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_test_util.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/predictors/resource_prefetch_predictor_test_util.cc View 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 9 chunks +64 lines, -85 lines 0 comments Download
M chrome/browser/ui/webui/predictors/predictors_handler.cc View 1 2 3 4 2 chunks +17 lines, -17 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 67 (46 generated)
alexilin
Hi Benoit, I've finished with refactoring of ResourcePrefetchPredictor. I'm not sure about the way I ...
4 years, 3 months ago (2016-09-20 11:11:53 UTC) #2
Benoit L
On 2016/09/20 11:11:53, alexilin wrote: > Hi Benoit, > > I've finished with refactoring of ...
4 years, 3 months ago (2016-09-20 11:34:16 UTC) #3
alexilin
On 2016/09/20 11:34:16, Benoit L wrote: > On 2016/09/20 11:11:53, alexilin wrote: > > Hi ...
4 years, 3 months ago (2016-09-20 11:40:09 UTC) #4
Benoit L
lgtm, thanks. Since I'm not an owner of this directory, and that this is mostly ...
4 years, 3 months ago (2016-09-20 12:33:27 UTC) #7
alexilin
Hi Egor, I resurrected refactoring was proposed in https://codereview.chromium.org/2268283005. We need it to manage databases ...
4 years, 3 months ago (2016-09-20 13:04:02 UTC) #10
pasko
overall looks good, thank you, asking only for a few small changes https://codereview.chromium.org/2357593002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_tables.cc File chrome/browser/predictors/resource_prefetch_predictor_tables.cc ...
4 years, 3 months ago (2016-09-21 17:38:37 UTC) #15
alexilin
Hello Egor, I worked on yours comments. Waiting for your approval. https://codereview.chromium.org/2357593002/diff/40001/chrome/browser/predictors/resource_prefetch_predictor_tables.cc File chrome/browser/predictors/resource_prefetch_predictor_tables.cc (right): ...
4 years, 3 months ago (2016-09-22 11:21:16 UTC) #18
pasko
lgtm, thank you, Alexandr
4 years, 3 months ago (2016-09-22 12:01:02 UTC) #21
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/2357593002/60001
4 years, 3 months ago (2016-09-22 12:01:46 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/264636)
4 years, 3 months ago (2016-09-22 12:10:40 UTC) #27
alexilin
pkasting@chromium.org: Please review changes in chrome/browser/ui/webui/predictors/predictors_handler.cc
4 years, 3 months ago (2016-09-22 12:22:33 UTC) #30
Peter Kasting
LGTM https://codereview.chromium.org/2357593002/diff/60001/chrome/browser/ui/webui/predictors/predictors_handler.cc File chrome/browser/ui/webui/predictors/predictors_handler.cc (right): https://codereview.chromium.org/2357593002/diff/60001/chrome/browser/ui/webui/predictors/predictors_handler.cc#newcode28 chrome/browser/ui/webui/predictors/predictors_handler.cc:28: using ResourceType = ResourceData::ResourceType; Nit: Avoid these. They ...
4 years, 3 months ago (2016-09-22 23:42:09 UTC) #31
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/2357593002/80001
4 years, 3 months ago (2016-09-23 08:46:15 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/133547) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 3 months ago (2016-09-23 08:48:47 UTC) #36
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/2357593002/100001
4 years, 3 months ago (2016-09-23 09:25:53 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/284843)
4 years, 3 months ago (2016-09-23 09:36:57 UTC) #41
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/2357593002/100001
4 years, 3 months ago (2016-09-23 13:30:43 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/284925)
4 years, 3 months ago (2016-09-23 13:46:58 UTC) #45
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/2357593002/100001
4 years, 2 months ago (2016-09-26 18:08:18 UTC) #63
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-26 18:16:36 UTC) #65
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 18:18:13 UTC) #67
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/68ebcad9d6ab7491ee1f2f5c5a28e7eac1c4987f
Cr-Commit-Position: refs/heads/master@{#420935}

Powered by Google App Engine
This is Rietveld 408576698