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 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
CC:
chromium-reviews, Peter Beverloo, jam, darin-cc_chromium.org, awdf+watch_chromium.org, harkness+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 6

Patch Set 2 : Dispatch a bare Service Worker event for a finished Background Fetch #

Total comments: 4

Patch Set 3 : Dispatch a bare Service Worker event for a finished Background Fetch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+690 lines, -713 lines) Patch
M content/browser/BUILD.gn View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.h View 1 3 chunks +20 lines, -7 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.cc View 1 5 chunks +71 lines, -10 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.h View 4 chunks +15 lines, -59 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.cc View 5 chunks +120 lines, -184 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 5 chunks +2 lines, -182 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.cc View 1 4 chunks +5 lines, -0 lines 0 comments Download
D content/browser/background_fetch/background_fetch_job_info.h View 1 chunk +0 lines, -89 lines 0 comments Download
D content/browser/background_fetch/background_fetch_job_info.cc View 1 chunk +0 lines, -64 lines 0 comments Download
D content/browser/background_fetch/background_fetch_job_response_data.h View 1 chunk +0 lines, -53 lines 0 comments Download
D content/browser/background_fetch/background_fetch_job_response_data.cc View 1 chunk +0 lines, -51 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.h View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_request_info.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M content/browser/background_fetch/background_fetch_service_impl.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
A content/browser/background_fetch/background_fetch_service_unittest.cc View 1 1 chunk +444 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
Peter Beverloo
+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
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
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:12:33, harkness ...
3 years, 8 months ago (2017-03-29 22:20:28 UTC) #4
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
Peter Beverloo
+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
lgtm 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/30 10:19:37, ...
3 years, 8 months ago (2017-03-30 14:15:28 UTC) #10
Peter Beverloo
Thanks! https://codereview.chromium.org/2786783002/diff/20001/content/browser/background_fetch/background_fetch_service_impl.h File content/browser/background_fetch/background_fetch_service_impl.h (right): https://codereview.chromium.org/2786783002/diff/20001/content/browser/background_fetch/background_fetch_service_impl.h#newcode79 content/browser/background_fetch/background_fetch_service_impl.h:79: // On 2017/03/30 14:15:28, harkness wrote: > micro-nit: ...
3 years, 8 months ago (2017-03-30 14:50:39 UTC) #11
Avi (use Gerrit)
build file lgtm
3 years, 8 months ago (2017-03-30 14:54:24 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/2786783002/40001
3 years, 8 months ago (2017-03-30 15:57:26 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 16:05:22 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f1cfaa03b05e225971f220bed245...

Powered by Google App Engine
This is Rietveld 408576698