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

Issue 2774263003: Added ServiceWorkerResponses to GetJobResponse callback (Closed)

Created:
3 years, 9 months ago by harkness
Modified:
3 years, 9 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, Peter Beverloo, darin-cc_chromium.org, jam, harkness+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Added ServiceWorkerResponses to GetJobResponse callback This CL does two things. First, it creates the ServiceWorkerRepsonse objects corresponding to each RequestInfo structure and fills out partial data there. Second, it removes the asynchronous calls to build each file backed blob in favor of a single call which inititalizes the blob storage context. A future CL will move that initialization into the BackgroundFetchContext so that the DataManager doesn't need to know about the BrowserContext. Also added unit tests for the response. BUG=692621 Review-Url: https://codereview.chromium.org/2774263003 Cr-Commit-Position: refs/heads/master@{#459813} Committed: https://chromium.googlesource.com/chromium/src/+/1aa34de9d58f09594f907e6aff43ca07c798164d

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Rebase to pull in BackgroundFetchRegistrationId patch #

Total comments: 9

Patch Set 4 : DCHECK and removed copy #

Patch Set 5 : Move PostTask to correct thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -32 lines) Patch
M content/browser/background_fetch/background_fetch_data_manager.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager.cc View 1 2 3 4 4 chunks +23 lines, -21 lines 0 comments Download
M content/browser/background_fetch/background_fetch_data_manager_unittest.cc View 1 2 3 2 chunks +71 lines, -0 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_response_data.h View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_response_data.cc View 1 2 3 1 chunk +23 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 19 (12 generated)
harkness
3 years, 9 months ago (2017-03-27 10:28:19 UTC) #2
Peter Beverloo
https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc File content/browser/background_fetch/background_fetch_data_manager.cc (right): https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc#newcode102 content/browser/background_fetch/background_fetch_data_manager.cc:102: BrowserThread::IO, FROM_HERE, BrowserThread::UI This class lives on the IO ...
3 years, 9 months ago (2017-03-27 11:05:16 UTC) #9
harkness
https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc File content/browser/background_fetch/background_fetch_data_manager.cc (right): https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc#newcode102 content/browser/background_fetch/background_fetch_data_manager.cc:102: BrowserThread::IO, FROM_HERE, On 2017/03/27 11:05:16, Peter Beverloo wrote: > ...
3 years, 9 months ago (2017-03-27 12:23:19 UTC) #12
harkness
https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc File content/browser/background_fetch/background_fetch_data_manager.cc (right): https://codereview.chromium.org/2774263003/diff/40001/content/browser/background_fetch/background_fetch_data_manager.cc#newcode102 content/browser/background_fetch/background_fetch_data_manager.cc:102: BrowserThread::IO, FROM_HERE, On 2017/03/27 12:23:19, harkness wrote: > On ...
3 years, 9 months ago (2017-03-27 12:35:32 UTC) #13
Peter Beverloo
lgtm..
3 years, 9 months ago (2017-03-27 13:05: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/2774263003/80001
3 years, 9 months ago (2017-03-27 16:20:32 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 17:19:13 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1aa34de9d58f09594f907e6aff43...

Powered by Google App Engine
This is Rietveld 408576698