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

Issue 2796783004: predictors: Add origin learning. (Closed)

Created:
3 years, 8 months ago by Benoit L
Modified:
3 years, 8 months ago
Reviewers:
alexilin
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Add origin learning. This CL makes the resource predictor aware of origin requests made while loading a page. It only adds the data collection, no fetching is enabled yet, and the collection is not enabled outside of tests. Changes: - Adds a new database table to track origin requests - Adds a new protocol buffer, loading and storing logic - All redirects are now tracked as they cause origin requests - No-store resources are tracked as well, only to collect origin data. BUG=699080 Review-Url: https://codereview.chromium.org/2796783004 Cr-Commit-Position: refs/heads/master@{#464035} Committed: https://chromium.googlesource.com/chromium/src/+/a72556982dcf08c91239167f2a5cd0e1b7f50ea8

Patch Set 1 #

Patch Set 2 : Origin scoring. #

Patch Set 3 : Now with moar tests. #

Patch Set 4 : Now with 100% less broken tests. #

Patch Set 5 : Advancing our amazing database version number. #

Total comments: 46

Patch Set 6 : Rebase (oops) and comments. #

Total comments: 2

Patch Set 7 : Address comments. #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : Rebase. #

Patch Set 11 : , #

Unified diffs Side-by-side diffs Delta from patch set Stats (+792 lines, -102 lines) Patch
M chrome/browser/predictors/resource_prefetch_common.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_common.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_common_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 2 3 4 5 6 7 8 9 10 11 chunks +31 lines, -2 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +243 lines, -34 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.proto View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.h View 1 2 3 4 5 7 chunks +24 lines, -8 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables.cc View 1 2 3 4 5 15 chunks +103 lines, -11 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_tables_unittest.cc View 1 2 3 4 5 18 chunks +173 lines, -30 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_test_util.h View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_test_util.cc View 1 2 3 4 5 6 7 8 9 chunks +75 lines, -4 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 2 3 4 5 6 7 8 24 chunks +101 lines, -12 lines 0 comments Download

Messages

Total messages: 40 (28 generated)
Benoit L
Hi alexilin@, First CL of the origin learning in the predictors/. It's only enabled in ...
3 years, 8 months ago (2017-04-10 09:36:33 UTC) #6
alexilin
Thanks! (1) Top-level comment. Don't we want to prioritize content origins over ads ones? I ...
3 years, 8 months ago (2017-04-10 14:58:28 UTC) #7
Benoit L
Thanks for the detailed review! All done. About the lack of subframe tracking: this is ...
3 years, 8 months ago (2017-04-11 09:04:05 UTC) #10
alexilin
LGTM % (test subresource redirect use case), thanks! I'm wondering if we could also take ...
3 years, 8 months ago (2017-04-11 09:42:19 UTC) #11
Benoit L
https://codereview.chromium.org/2796783004/diff/100001/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc File chrome/browser/predictors/resource_prefetch_predictor_unittest.cc (right): https://codereview.chromium.org/2796783004/diff/100001/chrome/browser/predictors/resource_prefetch_predictor_unittest.cc#newcode681 chrome/browser/predictors/resource_prefetch_predictor_unittest.cc:681: auto no_store = CreateURLRequestSummary( On 2017/04/11 09:42:19, alexilin wrote: ...
3 years, 8 months ago (2017-04-11 14:20:13 UTC) #14
alexilin
https://codereview.chromium.org/2796783004/diff/140001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2796783004/diff/140001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode504 chrome/browser/predictors/resource_prefetch_predictor.cc:504: if (request.url_chain().size() > 1) I'd prefer just to add ...
3 years, 8 months ago (2017-04-12 08:21:45 UTC) #23
Benoit L
https://codereview.chromium.org/2796783004/diff/140001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2796783004/diff/140001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode504 chrome/browser/predictors/resource_prefetch_predictor.cc:504: if (request.url_chain().size() > 1) On 2017/04/12 08:21:45, alexilin wrote: ...
3 years, 8 months ago (2017-04-12 12:32:40 UTC) #24
alexilin
https://codereview.chromium.org/2796783004/diff/160001/chrome/browser/predictors/resource_prefetch_predictor.cc File chrome/browser/predictors/resource_prefetch_predictor.cc (right): https://codereview.chromium.org/2796783004/diff/160001/chrome/browser/predictors/resource_prefetch_predictor.cc#newcode75 chrome/browser/predictors/resource_prefetch_predictor.cc:75: const GURL& request_url = request_summary.request_url; No need in picking ...
3 years, 8 months ago (2017-04-12 13:44:05 UTC) #27
alexilin
https://codereview.chromium.org/2796783004/diff/160001/chrome/browser/predictors/resource_prefetch_predictor.h File chrome/browser/predictors/resource_prefetch_predictor.h (right): https://codereview.chromium.org/2796783004/diff/160001/chrome/browser/predictors/resource_prefetch_predictor.h#newcode107 chrome/browser/predictors/resource_prefetch_predictor.h:107: struct OriginRequestSummary { Oh, and a comment to this ...
3 years, 8 months ago (2017-04-12 13:53:08 UTC) #28
alexilin
LGTM refreshed.
3 years, 8 months ago (2017-04-12 14:41:22 UTC) #33
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/2796783004/200001
3 years, 8 months ago (2017-04-12 15:31:03 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 15:37:31 UTC) #40
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/a72556982dcf08c91239167f2a5c...

Powered by Google App Engine
This is Rietveld 408576698