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

Issue 1854643002: Implement PrerenderManager::AddPrerenderForOffline() (Closed)

Created:
4 years, 8 months ago by gabadie
Modified:
4 years, 7 months ago
Reviewers:
pasko, Mark P, mmenke
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, davidben+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PrerenderManager::AddPrerenderForOffline() Offline's operation of fetching and snapshoting a web page is going to be experienced with Prerender. This CL add the offline Prerender origin in that purpose with the PrerenderManager::AddPrerenderForOffline() method. BUG=599500 Committed: https://crrev.com/fde8d42d16c0fac930e7fe39e86cb3ef6d24e9c8 Cr-Commit-Position: refs/heads/master@{#390370}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Addresses pasko' comments #

Total comments: 16

Patch Set 4 : Addresses pasko's comments #

Total comments: 7

Patch Set 5 : Addresses pasko's comments #

Total comments: 5

Patch Set 6 : Rebase #

Patch Set 7 : Takes care of FINAL_STATUS_BLOCK_THIRD_PARTY_COOKIES #

Patch Set 8 : Reverts changes of chrome/chrome_browser.gypi #

Total comments: 10

Patch Set 9 : Rebase #

Patch Set 10 : Addresses mmenke's comments #

Total comments: 6

Patch Set 11 : Makes offline originated prerenders unfindable #

Total comments: 4

Patch Set 12 : Rebase #

Patch Set 13 : Fixes histograms.xml #

Patch Set 14 : Rebase #

Patch Set 15 : s/scoped_ptr/std::unique_ptr/g to fix compilation failure caused by recent landed changes #

Patch Set 16 : Fixes PrerenderAllowedForOfflineAndForcedCellular #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -22 lines) Patch
M chrome/browser/prerender/prerender_histograms.cc View 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +31 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_origin.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_origin.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +60 lines, -16 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (20 generated)
gabadie
Hey egor, Here is the first revision of the CL bringing support of prerendering for ...
4 years, 8 months ago (2016-04-01 09:59:56 UTC) #2
pasko
Looks mostly as discussed, thanks. Some top-level remarks. 1. For things that are not trivial ...
4 years, 8 months ago (2016-04-04 12:55:56 UTC) #4
gabadie
Thanks Egor! I have uploaded a new revision, PTAL. On 2016/04/04 12:55:56, pasko wrote: > ...
4 years, 8 months ago (2016-04-04 14:05:07 UTC) #6
pasko
On 2016/04/04 14:05:07, gabadie wrote: > Thanks Egor! > > I have uploaded a new ...
4 years, 8 months ago (2016-04-04 16:04:52 UTC) #7
pasko
https://codereview.chromium.org/1854643002/diff/40001/chrome/browser/prerender/prerender_constants.h File chrome/browser/prerender/prerender_constants.h (right): https://codereview.chromium.org/1854643002/diff/40001/chrome/browser/prerender/prerender_constants.h#newcode10 chrome/browser/prerender/prerender_constants.h:10: /* Most of the prerender are used in less ...
4 years, 8 months ago (2016-04-04 17:04:23 UTC) #8
gabadie
Thanks Egor! I have uploaded a new revision addressing all your comments. PTAL. https://codereview.chromium.org/1854643002/diff/40001/chrome/browser/prerender/prerender_constants.h File ...
4 years, 8 months ago (2016-04-04 19:42:51 UTC) #9
pasko
lgtm given you accept the documentation-related changes below. https://codereview.chromium.org/1854643002/diff/60001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/60001/chrome/browser/prerender/prerender_manager.cc#newcode1343 chrome/browser/prerender/prerender_manager.cc:1343: // ...
4 years, 8 months ago (2016-04-05 11:49:56 UTC) #10
pasko
mmenke: even though prerendering is not your focus now, I would appreciate if you could ...
4 years, 8 months ago (2016-04-05 11:55:56 UTC) #12
gabadie
Thanks Egor! I have addressed all your requested changes in the new CL. mmenke@chromium.org: PTAL. ...
4 years, 8 months ago (2016-04-05 13:35:25 UTC) #13
mmenke
https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_manager.cc#newcode545 chrome/browser/prerender/prerender_manager.cc:545: DCHECK(prerender_contents->origin() != ORIGIN_OFFLINE); You don't seem to be enforcing ...
4 years, 8 months ago (2016-04-05 18:48:26 UTC) #14
pasko
https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_constants.h File chrome/browser/prerender/prerender_constants.h (right): https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_constants.h#newcode16 chrome/browser/prerender/prerender_constants.h:16: const int kOfflinePrerenderLifeExpectancyMinutes = 20; dougarnett@ said: "5 minutes ...
4 years, 8 months ago (2016-04-06 11:09:06 UTC) #15
mmenke
prerender unit tests are pretty unreliable, so if we're going to go this route, I ...
4 years, 8 months ago (2016-04-08 16:29:38 UTC) #16
gabadie
On 2016/04/08 16:29:38, mmenke wrote: > prerender unit tests are pretty unreliable, so if we're ...
4 years, 8 months ago (2016-04-14 18:24:51 UTC) #17
gabadie
https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/80001/chrome/browser/prerender/prerender_manager.cc#newcode545 chrome/browser/prerender/prerender_manager.cc:545: DCHECK(prerender_contents->origin() != ORIGIN_OFFLINE); On 2016/04/05 18:48:26, mmenke wrote: > ...
4 years, 8 months ago (2016-04-14 18:28:51 UTC) #18
mmenke
On 2016/04/14 18:24:51, gabadie wrote: > On 2016/04/08 16:29:38, mmenke wrote: > > prerender unit ...
4 years, 8 months ago (2016-04-14 19:50:03 UTC) #19
mmenke
One other thing I'm concerned about regressing is timing out offline pages (Again, since you're ...
4 years, 8 months ago (2016-04-15 15:31:10 UTC) #20
gabadie
On 2016/04/14 19:50:03, mmenke wrote: > On 2016/04/14 18:24:51, gabadie wrote: > > On 2016/04/08 ...
4 years, 8 months ago (2016-04-19 13:08:55 UTC) #21
mmenke
On 2016/04/19 13:08:55, gabadie wrote: > On 2016/04/14 19:50:03, mmenke wrote: > > On 2016/04/14 ...
4 years, 8 months ago (2016-04-21 19:25:26 UTC) #22
mmenke
LGTM https://codereview.chromium.org/1854643002/diff/140001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/140001/chrome/browser/prerender/prerender_manager.cc#newcode544 chrome/browser/prerender/prerender_manager.cc:544: DCHECK(prerender_contents->origin() != ORIGIN_OFFLINE); DCHECK_NE https://codereview.chromium.org/1854643002/diff/140001/chrome/browser/prerender/prerender_manager.cc#newcode544 chrome/browser/prerender/prerender_manager.cc:544: DCHECK(prerender_contents->origin() != ...
4 years, 8 months ago (2016-04-22 16:41:33 UTC) #23
gabadie
Thanks Matt! I have addressed all your comments in the new revision. pasko@chromium.org: Is this ...
4 years, 8 months ago (2016-04-25 11:08:24 UTC) #24
pasko
lgtm lgtm with 2 changes in tests nice! https://codereview.chromium.org/1854643002/diff/180001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/180001/chrome/browser/prerender/prerender_manager.cc#newcode544 chrome/browser/prerender/prerender_manager.cc:544: CHECK_NE(ORIGIN_OFFLINE, ...
4 years, 8 months ago (2016-04-25 11:29:11 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854643002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854643002/180001
4 years, 8 months ago (2016-04-25 11:29:32 UTC) #28
pasko
clicked on CQ by accident, discarding CQ now
4 years, 8 months ago (2016-04-25 11:30:24 UTC) #30
gabadie
Thanks for the review. Here is the CL that replace the CHECK with FindPrerenderData not ...
4 years, 8 months ago (2016-04-25 12:35:12 UTC) #31
pasko
still lgtm, thank you https://codereview.chromium.org/1854643002/diff/200001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/1854643002/diff/200001/chrome/browser/prerender/prerender_manager.cc#newcode989 chrome/browser/prerender/prerender_manager.cc:989: url, origin, FINAL_STATUS_DUPLICATE); On 2016/04/25 ...
4 years, 8 months ago (2016-04-25 13:03:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854643002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854643002/200001
4 years, 8 months ago (2016-04-25 13:05:33 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/172606)
4 years, 8 months ago (2016-04-25 13:17:54 UTC) #37
gabadie
Hey Mark, Would you mind rubber stamp histograms.xml? =)
4 years, 8 months ago (2016-04-25 13:22:22 UTC) #39
gabadie
On 2016/04/25 13:22:22, gabadie wrote: > Hey Mark, > > Would you mind rubber stamp ...
4 years, 8 months ago (2016-04-25 13:31:54 UTC) #40
Mark P
Though only a two-line histogram.xml change, it turned out to definitely need a review, not ...
4 years, 8 months ago (2016-04-25 20:40:41 UTC) #41
gabadie
Oups. Ok I totaly failed on histograms.xml ^^' I have fixed it accordingly. mpearson@chromium.org: PTAL ...
4 years, 7 months ago (2016-04-27 09:01:44 UTC) #42
Mark P
histograms.xml lgtm
4 years, 7 months ago (2016-04-27 21:58:46 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854643002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854643002/240001
4 years, 7 months ago (2016-04-28 08:50:45 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/219023)
4 years, 7 months ago (2016-04-28 09:09:28 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854643002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854643002/300001
4 years, 7 months ago (2016-04-28 12:45:26 UTC) #50
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 13:44:44 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1854643002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1854643002/300001
4 years, 7 months ago (2016-04-28 14:14:14 UTC) #55
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 7 months ago (2016-04-28 14:18:09 UTC) #57
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:18:13 UTC) #58
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/fde8d42d16c0fac930e7fe39e86cb3ef6d24e9c8
Cr-Commit-Position: refs/heads/master@{#390370}

Powered by Google App Engine
This is Rietveld 408576698