Dispatch a bare Service Worker event for a finished Background Fetch
Following this CL, we'll invoke the `backgroundfetched` Service Worker
event when a Background Fetch has completed. The responses will be
filled with the tiniest bits of information we have right now, so we
can't actually distinguish between success and failure yet, but from
this point on we'll be able to iterate on the missing fields.
BUG=692579
Review-Url: https://codereview.chromium.org/2786783002
Cr-Commit-Position: refs/heads/master@{#460780}
Committed: https://chromium.googlesource.com/chromium/src/+/f1cfaa03b05e225971f220bed2451cb2dc4b497d
+harkness, PTAL The good: this gives us end-to-end. The fair: this still needs tests, so ...
3 years, 8 months ago
(2017-03-29 20:36:00 UTC)
#2
+harkness, PTAL
The good: this gives us end-to-end.
The fair: this still needs tests, so is not ready to land.
The bad: redness :( -- but it matches what we discussed.
harkness
Looks good % testing. The good: yey! The fair: yup. The bad: *sigh* https://codereview.chromium.org/2786783002/diff/1/content/browser/background_fetch/background_fetch_context.cc File ...
3 years, 8 months ago
(2017-03-29 22:12:33 UTC)
#3
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_fetch/background_fetch_context.cc File content/browser/background_fetch/background_fetch_context.cc (right): https://codereview.chromium.org/2786783002/diff/1/content/browser/background_fetch/background_fetch_context.cc#newcode174 content/browser/background_fetch/background_fetch_context.cc:174: if (controller->state() != BackgroundFetchJobController::State::COMPLETED) { On 2017/03/29 22:12:33, harkness ...
3 years, 8 months ago
(2017-03-29 22:20:28 UTC)
#4
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_...
File content/browser/background_fetch/background_fetch_context.cc (right):
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_...
content/browser/background_fetch/background_fetch_context.cc:174: if
(controller->state() != BackgroundFetchJobController::State::COMPLETED) {
On 2017/03/29 22:12:33, harkness wrote:
> We need to call the aborted event if that's the state on the Controller, too.
As I understand it, `backgroundfetchabort` is for when the user aborts, not the
developer. I'll send a quick note to Jake.
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_...
File content/browser/background_fetch/background_fetch_data_manager.cc (right):
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_...
content/browser/background_fetch/background_fetch_data_manager.cc:72: void
MarkRequestAsComplete(const BackgroundFetchRequestInfo& request) {
On 2017/03/29 22:12:33, harkness wrote:
> Maybe add the file_path and received_bytes to this call?
We'll need much more information, so I'd like those to be set on the |request|.
(And presumably retire |download_guid| in MarkRequestAsStarted() in favor of
that too.) That requires some more fiddling with ownership, but I'll get that
done in the near future. E2E first.
Peter Beverloo
https://codereview.chromium.org/2786783002/diff/1/content/browser/background_fetch/background_fetch_context.cc File content/browser/background_fetch/background_fetch_context.cc (right): https://codereview.chromium.org/2786783002/diff/1/content/browser/background_fetch/background_fetch_context.cc#newcode174 content/browser/background_fetch/background_fetch_context.cc:174: if (controller->state() != BackgroundFetchJobController::State::COMPLETED) { On 2017/03/29 22:20:28, Peter ...
3 years, 8 months ago
(2017-03-30 10:19:37 UTC)
#5
+harkness, PTAL +avi for BUILD.gn I'll add even more in-depth integration tests in a subsequent ...
3 years, 8 months ago
(2017-03-30 13:41:06 UTC)
#7
+harkness, PTAL
+avi for BUILD.gn
I'll add even more in-depth integration tests in a subsequent CL if that's OK,
given that this already is pretty big and the request/response testing can be
tricky.
Peter Beverloo
The CQ bit was checked by peter@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-03-30 13:42:28 UTC)
#8
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1490889403037500, "parent_rev": "e376f4717780e3248c359ea4fd5e47976130cc0d", "commit_rev": "f1cfaa03b05e225971f220bed2451cb2dc4b497d"}
3 years, 8 months ago
(2017-03-30 16:04:12 UTC)
#19
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1490889403037500,
"parent_rev": "e376f4717780e3248c359ea4fd5e47976130cc0d", "commit_rev":
"f1cfaa03b05e225971f220bed2451cb2dc4b497d"}
commit-bot: I haz the power
Description was changed from ========== Dispatch a bare Service Worker event for a finished Background ...
3 years, 8 months ago
(2017-03-30 16:05:21 UTC)
#20
Message was sent while issue was closed.
Description was changed from
==========
Dispatch a bare Service Worker event for a finished Background Fetch
Following this CL, we'll invoke the `backgroundfetched` Service Worker
event when a Background Fetch has completed. The responses will be
filled with the tiniest bits of information we have right now, so we
can't actually distinguish between success and failure yet, but from
this point on we'll be able to iterate on the missing fields.
BUG=692579
==========
to
==========
Dispatch a bare Service Worker event for a finished Background Fetch
Following this CL, we'll invoke the `backgroundfetched` Service Worker
event when a Background Fetch has completed. The responses will be
filled with the tiniest bits of information we have right now, so we
can't actually distinguish between success and failure yet, but from
this point on we'll be able to iterate on the missing fields.
BUG=692579
Review-Url: https://codereview.chromium.org/2786783002
Cr-Commit-Position: refs/heads/master@{#460780}
Committed:
https://chromium.googlesource.com/chromium/src/+/f1cfaa03b05e225971f220bed245...
==========
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/f1cfaa03b05e225971f220bed2451cb2dc4b497d
3 years, 8 months ago
(2017-03-30 16:05:22 UTC)
#21
Issue 2786783002: Dispatch a bare Service Worker event for a finished Background Fetch
(Closed)
Created 3 years, 8 months ago by Peter Beverloo
Modified 3 years, 8 months ago
Reviewers: harkness, Avi (use Gerrit)
Base URL:
Comments: 10