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

Issue 2395903002: API changes to support suspending requests (Closed)

Created:
4 years, 2 months ago by Pete Williamson
Modified:
4 years, 2 months ago
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

API changes to support suspending requests We want to be able to suspend requests until the offline download code is sure it won't be manually downloading them. This API surface change provides a mechanism to allow requests to be started in a suspended state, and later transition to an available state. BUG=652889 Committed: https://crrev.com/80979723f0248e791feae4829095b05aac1eb3a1 Cr-Commit-Position: refs/heads/master@{#423596}

Patch Set 1 #

Total comments: 6

Patch Set 2 : CR feedback per Dimich #

Patch Set 3 : CR feedback per Dimich, round 2 #

Patch Set 4 : Fix compile errors #

Patch Set 5 : Keep the JS with a boolean instead of forcing a double. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -18 lines) Patch
M chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 3 chunks +19 lines, -3 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 5 chunks +20 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
Pete Williamson
4 years, 2 months ago (2016-10-05 21:38:51 UTC) #2
Dmitry Titov
https://codereview.chromium.org/2395903002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2395903002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode120 components/offline_pages/background/request_coordinator.cc:120: Lets add "DCHECK(id > 0);" here, just to be ...
4 years, 2 months ago (2016-10-05 22:28:19 UTC) #3
Pete Williamson
https://codereview.chromium.org/2395903002/diff/1/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2395903002/diff/1/components/offline_pages/background/request_coordinator.cc#newcode120 components/offline_pages/background/request_coordinator.cc:120: On 2016/10/05 22:28:19, Dmitry Titov wrote: > Lets add ...
4 years, 2 months ago (2016-10-05 22:57:46 UTC) #4
Dmitry Titov
It sounds painful for me to have RequestAvailability parameter on SavePageLater(url) call, since there is ...
4 years, 2 months ago (2016-10-05 23:39:35 UTC) #5
Pete Williamson
On 2016/10/05 23:39:35, Dmitry Titov wrote: > It sounds painful for me to have RequestAvailability ...
4 years, 2 months ago (2016-10-05 23:51:09 UTC) #6
Pete Williamson
BauerB, please look at changes to offline_internals_ui_message_handler.cc Thanks!
4 years, 2 months ago (2016-10-05 23:51:59 UTC) #8
Bernhard Bauer
lgtm
4 years, 2 months ago (2016-10-06 15:22:09 UTC) #11
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/2395903002/80001
4 years, 2 months ago (2016-10-06 16:38:09 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 18:34:25 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/80979723f0248e791feae4829095b05aac1eb3a1
Cr-Commit-Position: refs/heads/master@{#423596}

Powered by Google App Engine
This is Rietveld 408576698