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

Issue 2266323002: Cancel prerendering when a request is paused or removed. (Closed)

Created:
4 years, 4 months ago by Pete Williamson
Modified:
4 years, 4 months ago
Reviewers:
dougarnett
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cancel prerendering when a request is paused or removed. A request might be paused or removed while being pre-rendered. If that happens, we should cancel the request that is inflight. As a follow up, we still need to remember that we cancelled it, and remove any save page that might appear after cancelling it. (there is already a TODO in the code for that) BUG=610521 Committed: https://crrev.com/e59d91c72518cf5a820978a46fe24672a5386ea0 Cr-Commit-Position: refs/heads/master@{#413882}

Patch Set 1 #

Total comments: 12

Patch Set 2 : CR feedback per DougArnett #

Total comments: 4

Patch Set 3 : CR feedback per DougArnett #

Total comments: 2

Patch Set 4 : rename flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -21 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 2 3 4 chunks +8 lines, -2 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 6 chunks +52 lines, -19 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
Pete Williamson
4 years, 4 months ago (2016-08-23 01:07:49 UTC) #3
dougarnett
https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode115 components/offline_pages/background/request_coordinator.cc:115: void RequestCoordinator::CancelActiveRequestIfItMatches( CancelRequestIfActive()? a bit shorter https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode123 components/offline_pages/background/request_coordinator.cc:123: offliner_->Cancel(); ...
4 years, 4 months ago (2016-08-23 16:32:13 UTC) #7
dougarnett
https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode284 components/offline_pages/background/request_coordinator.cc:284: active_request_.reset(new SavePageRequest(request)); We may want to move this down ...
4 years, 4 months ago (2016-08-23 17:00:39 UTC) #8
Pete Williamson
https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode115 components/offline_pages/background/request_coordinator.cc:115: void RequestCoordinator::CancelActiveRequestIfItMatches( On 2016/08/23 16:32:13, dougarnett wrote: > CancelRequestIfActive()? ...
4 years, 4 months ago (2016-08-23 17:48:43 UTC) #9
dougarnett
https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode284 components/offline_pages/background/request_coordinator.cc:284: active_request_.reset(new SavePageRequest(request)); On 2016/08/23 17:00:39, dougarnett wrote: > We ...
4 years, 4 months ago (2016-08-23 17:51:30 UTC) #10
dougarnett
https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode115 components/offline_pages/background/request_coordinator.cc:115: void RequestCoordinator::CancelActiveRequestIfItMatches( On 2016/08/23 17:48:43, Pete Williamson wrote: > ...
4 years, 4 months ago (2016-08-23 20:59:45 UTC) #11
dougarnett
https://codereview.chromium.org/2266323002/diff/40001/components/offline_pages/background/request_coordinator_unittest.cc File components/offline_pages/background/request_coordinator_unittest.cc (right): https://codereview.chromium.org/2266323002/diff/40001/components/offline_pages/background/request_coordinator_unittest.cc#newcode630 components/offline_pages/background/request_coordinator_unittest.cc:630: PumpLoop(); More PumpLoop() to get SendToOffliner to run (eg, ...
4 years, 4 months ago (2016-08-23 21:50:24 UTC) #12
Pete Williamson
https://codereview.chromium.org/2266323002/diff/20001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2266323002/diff/20001/components/offline_pages/background/request_coordinator.cc#newcode216 components/offline_pages/background/request_coordinator.cc:216: is_canceled_ = true; On 2016/08/23 20:59:45, dougarnett wrote: > ...
4 years, 4 months ago (2016-08-23 21:57:00 UTC) #13
dougarnett
lgtm (as long as trybots happy ;-)
4 years, 4 months ago (2016-08-23 22:08:02 UTC) #14
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/2266323002/60001
4 years, 4 months ago (2016-08-23 22:09:16 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-23 23:04:21 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 23:06:03 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e59d91c72518cf5a820978a46fe24672a5386ea0
Cr-Commit-Position: refs/heads/master@{#413882}

Powered by Google App Engine
This is Rietveld 408576698