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

Issue 1192673002: Ensure ResourceScheduler starts requests even if the tab is closed. (Closed)

Created:
5 years, 6 months ago by Adam Rice
Modified:
5 years, 5 months ago
Reviewers:
mmenke
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure ResourceScheduler starts requests even if the tab is closed. Async revalidation requests are low priority, but they must be started eventually even if the tab is closed. Add unit tests to ensure that ResourceScheduler starts all requests eventually, even if the client is deleted. Also, modify ResourceScheduler to start any pending requests when the client is deleted. This satisfies the requirement in the simplest way. BUG=501805 TEST=content_unittests Committed: https://crrev.com/1ce1e09b37ca7c2bfd25cd70106d2c4eac48b52a Cr-Commit-Position: refs/heads/master@{#338058}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M content/browser/loader/resource_scheduler.cc View 1 2 chunks +18 lines, -5 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Adam Rice
5 years, 6 months ago (2015-06-18 12:57:28 UTC) #2
mmenke
https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc#newcode936 content/browser/loader/resource_scheduler.cc:936: // OnClientDeleted() returns. Wait...So we start a bunch of ...
5 years, 6 months ago (2015-06-18 14:49:26 UTC) #3
Adam Rice
https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc#newcode936 content/browser/loader/resource_scheduler.cc:936: // OnClientDeleted() returns. On 2015/06/18 14:49:26, mmenke wrote: > ...
5 years, 6 months ago (2015-06-19 13:06:53 UTC) #4
mmenke
https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc#newcode936 content/browser/loader/resource_scheduler.cc:936: // OnClientDeleted() returns. On 2015/06/19 13:06:53, Adam Rice wrote: ...
5 years, 6 months ago (2015-06-19 15:10:16 UTC) #5
mmenke
On 2015/06/19 15:10:16, mmenke wrote: > https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc > File content/browser/loader/resource_scheduler.cc (right): > > https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc#newcode936 > ...
5 years, 6 months ago (2015-06-22 14:02:18 UTC) #6
mmenke
This LGTM. I want to see if we can switch the order of CancelRequestsForRoute and ...
5 years, 6 months ago (2015-06-22 16:42:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192673002/1
5 years, 6 months ago (2015-06-23 16:09:36 UTC) #9
Adam Rice
https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1192673002/diff/1/content/browser/loader/resource_scheduler.cc#newcode936 content/browser/loader/resource_scheduler.cc:936: // OnClientDeleted() returns. On 2015/06/19 15:10:16, mmenke wrote: > ...
5 years, 6 months ago (2015-06-23 17:06:52 UTC) #10
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-23 17:11:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192673002/1
5 years, 5 months ago (2015-06-29 07:41:03 UTC) #14
commit-bot: I haz the power
Exceeded global retry quota
5 years, 5 months ago (2015-06-29 07:42:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192673002/20001
5 years, 5 months ago (2015-07-09 15:08:23 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-09 16:28:45 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 16:29:26 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1ce1e09b37ca7c2bfd25cd70106d2c4eac48b52a
Cr-Commit-Position: refs/heads/master@{#338058}

Powered by Google App Engine
This is Rietveld 408576698