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

Issue 2397943004: predictors: Use redirect data in prefetch. (Closed)

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

Description

predictors: Use redirect data in prefetch. The data about redirects now is used for populate subresource URLs in ResourcePrefetchPredictor::GetPrefetchData when main page doesn't have its own subresources. BUG=631966 Committed: https://crrev.com/a5d0b1f24b9e4a3ae59081a33e83a9e9daf0d005 Cr-Commit-Position: refs/heads/master@{#424447}

Patch Set 1 : . #

Total comments: 12

Patch Set 2 : Refactor GetPrefetchData, get rid of redirects sort. #

Total comments: 17

Patch Set 3 : Renaming and comments. #

Total comments: 15

Patch Set 4 : Add comments + std::max_element. #

Total comments: 4

Patch Set 5 : Add tests. Modify priorities in GetPrefetchData. #

Total comments: 1

Patch Set 6 : Nit. #

Total comments: 2

Patch Set 7 : Non-empty check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -56 lines) Patch
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 6 5 chunks +75 lines, -26 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 3 chunks +0 lines, -22 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 2 3 4 5 3 chunks +177 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
alexilin
Hello, It's time to use collected redirect data for the prefetch. I'm a little bit ...
4 years, 2 months ago (2016-10-06 15:41:56 UTC) #3
Benoit L
https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode563 chrome/browser/predictors/resource_prefetch_predictor.cc:563: bool ResourcePrefetchPredictor::GetFinalRedirect( The scoring code is duplicated, and it ...
4 years, 2 months ago (2016-10-07 09:52:18 UTC) #4
alexilin
Comment for Benoit. https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode563 chrome/browser/predictors/resource_prefetch_predictor.cc:563: bool ResourcePrefetchPredictor::GetFinalRedirect( On 2016/10/07 09:52:18, Benoit ...
4 years, 2 months ago (2016-10-07 10:49:07 UTC) #5
pasko
On 2016/10/06 15:41:56, alexilin wrote: > Hello, > > It's time to use collected redirect ...
4 years, 2 months ago (2016-10-07 11:35:47 UTC) #6
pasko
https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.h File chrome/browser/predictors/resource_prefetch_predictor.h (right): https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.h#newcode246 chrome/browser/predictors/resource_prefetch_predictor.h:246: // Returns true if the URL-based table contains PrefetchData ...
4 years, 2 months ago (2016-10-07 11:42:43 UTC) #7
alexilin
Dear reviewers, I've almost rewritten this CL. Changes: - Scan all redirects while populating to ...
4 years, 2 months ago (2016-10-07 13:09:29 UTC) #8
pasko
overall looking good, a few random comments that came into mind, .. and will wait ...
4 years, 2 months ago (2016-10-07 13:44:28 UTC) #9
Benoit L
https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/20001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode563 chrome/browser/predictors/resource_prefetch_predictor.cc:563: bool ResourcePrefetchPredictor::GetFinalRedirect( On 2016/10/07 13:09:29, alexilin wrote: > On ...
4 years, 2 months ago (2016-10-07 13:55:16 UTC) #10
alexilin
Answer Egor's comments. Tests are still in progress... https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode241 chrome/browser/predictors/resource_prefetch_predictor.cc:241: const ...
4 years, 2 months ago (2016-10-07 14:29:06 UTC) #12
pasko
https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode241 chrome/browser/predictors/resource_prefetch_predictor.cc:241: const RedirectStat& best_redirect = On 2016/10/07 14:29:05, alexilin wrote: ...
4 years, 2 months ago (2016-10-07 15:42:45 UTC) #13
alexilin
Egor answers too fast, no time for tests... https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/40001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode241 chrome/browser/predictors/resource_prefetch_predictor.cc:241: const ...
4 years, 2 months ago (2016-10-07 16:33:44 UTC) #14
pasko
I am generally slow to respond, I guess it's just this change was super-exciting :) ...
4 years, 2 months ago (2016-10-07 17:18:55 UTC) #15
Benoit L
Code looks fine, I don't have any comments on it (aside from agreeing with pasko's). ...
4 years, 2 months ago (2016-10-10 15:56:05 UTC) #16
alexilin
Hi folks, I've added tests to cover all new functions. Also I've accepted yours suggestions ...
4 years, 2 months ago (2016-10-11 13:14:41 UTC) #17
Benoit L
lgtm, thank you. https://codereview.chromium.org/2397943004/diff/100001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/100001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode536 chrome/browser/predictors/resource_prefetch_predictor.cc:536: // Attempt to fetch URLs based ...
4 years, 2 months ago (2016-10-11 13:37:11 UTC) #18
alexilin
CL is ready for commit. pasko@ this is a last chance to say a word. ...
4 years, 2 months ago (2016-10-11 14:00:35 UTC) #23
pasko
lgtm with one relatively minor question addressed https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode555 chrome/browser/predictors/resource_prefetch_predictor.cc:555: *url_table_cache_, urls)) ...
4 years, 2 months ago (2016-10-11 14:16:19 UTC) #24
alexilin
Committing now. https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode555 chrome/browser/predictors/resource_prefetch_predictor.cc:555: *url_table_cache_, urls)) On 2016/10/11 14:16:19, pasko wrote: ...
4 years, 2 months ago (2016-10-11 15:24:30 UTC) #27
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/2397943004/160001
4 years, 2 months ago (2016-10-11 15:25:11 UTC) #30
pasko
https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2397943004/diff/80001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode555 chrome/browser/predictors/resource_prefetch_predictor.cc:555: *url_table_cache_, urls)) On 2016/10/11 15:24:29, alexilin wrote: > On ...
4 years, 2 months ago (2016-10-11 15:57:55 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 2 months ago (2016-10-11 16:15:00 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 16:18:17 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a5d0b1f24b9e4a3ae59081a33e83a9e9daf0d005
Cr-Commit-Position: refs/heads/master@{#424447}

Powered by Google App Engine
This is Rietveld 408576698