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

Issue 2538743002: predictors: Add a origin for prefetch requests, remove the URL/host settings. (Closed)

Created:
4 years ago by Benoit L
Modified:
4 years ago
Reviewers:
pasko
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

predictors: Add a origin for prefetch requests, remove the URL/host settings. The speculative_prefetch_predictor can start prefetching either due to an external request, or by observing a navigation. These use cases were not differentiated previously. This CL adds: - A command-line switch to enable external requests only, and - An origin for prefetch requests. In addition, URL and host-based learning could previously be controlled separately. This is unused, as it was only controlled by field trial groups, and the logic has been removed in crrev.com/2532933002. BUG=631966 Committed: https://crrev.com/f72ac0d75ba64a1afbbaa052fb3135e1fa78fc24 Cr-Commit-Position: refs/heads/master@{#435196}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -108 lines) Patch
M chrome/browser/predictors/resource_prefetch_common.h View 1 3 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_common.cc View 1 3 chunks +39 lines, -37 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_common_unittest.cc View 1 2 4 chunks +28 lines, -22 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor.cc View 1 7 chunks +18 lines, -32 lines 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/predictors/resource_prefetch_predictor_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
Benoit L
4 years ago (2016-11-29 12:54:15 UTC) #4
pasko
this simplifies a lot, thank you! my suggestions are only about the hard parts - ...
4 years ago (2016-11-29 14:44:45 UTC) #7
Benoit L
Thanks! All done. https://codereview.chromium.org/2538743002/diff/1/chrome/browser/predictors/resource_prefetch_common.h File chrome/browser/predictors/resource_prefetch_common.h (right): https://codereview.chromium.org/2538743002/diff/1/chrome/browser/predictors/resource_prefetch_common.h#newcode70 chrome/browser/predictors/resource_prefetch_common.h:70: enum Origin { ORIGIN_NAVIGATION = 0, ...
4 years ago (2016-11-29 17:02:51 UTC) #8
pasko
lgtm, thank you
4 years ago (2016-11-29 19:31:30 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/2538743002/40001
4 years ago (2016-11-30 09:12:26 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-30 09:16:36 UTC) #21
commit-bot: I haz the power
4 years ago (2016-11-30 09:18:43 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f72ac0d75ba64a1afbbaa052fb3135e1fa78fc24
Cr-Commit-Position: refs/heads/master@{#435196}

Powered by Google App Engine
This is Rietveld 408576698