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

Issue 2809953002: Make the download's response headers available in the DownloadItem (Closed)

Created:
3 years, 8 months ago by Peter Beverloo
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, David Trainor- moved to gerrit, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the download's response headers available in the DownloadItem Background Fetch will give this developer back to the developer, and use it to determine whether the request was "ok". That information will also be used to determine which Service Worker event to invoke. The response headers will not be stored in the download database, so requires the download to either have been started or resumed in the current session. BUG=709489 Review-Url: https://codereview.chromium.org/2809953002 Cr-Commit-Position: refs/heads/master@{#463982} Committed: https://chromium.googlesource.com/chromium/src/+/87a42b7af9035be518adf40266e4a3b1463186fd

Patch Set 1 #

Total comments: 1

Patch Set 2 : headers #

Total comments: 2

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -1 line) Patch
M content/browser/download/download_create_info.h View 1 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/download/download_create_info.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 chunks +8 lines, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 1 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 9 chunks +22 lines, -0 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/download_item.h View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M content/public/test/fake_download_item.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/test/fake_download_item.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download
M content/public/test/mock_download_item.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (20 generated)
Peter Beverloo
+dtrainor PTAL +shaktisahu FYI I'll do headers separately since there's some trickery there -- I'm ...
3 years, 8 months ago (2017-04-11 15:10:24 UTC) #4
David Trainor- moved to gerrit
lgtm % comment nit https://codereview.chromium.org/2809953002/diff/20001/content/public/browser/download_item.h File content/public/browser/download_item.h (right): https://codereview.chromium.org/2809953002/diff/20001/content/public/browser/download_item.h#newcode255 content/public/browser/download_item.h:255: virtual const scoped_refptr<const net::HttpResponseHeaders>& Maybe ...
3 years, 8 months ago (2017-04-11 22:06:40 UTC) #12
Peter Beverloo
+nick for //content/public changes Thanks David! https://codereview.chromium.org/2809953002/diff/20001/content/public/browser/download_item.h File content/public/browser/download_item.h (right): https://codereview.chromium.org/2809953002/diff/20001/content/public/browser/download_item.h#newcode255 content/public/browser/download_item.h:255: virtual const scoped_refptr<const ...
3 years, 8 months ago (2017-04-11 22:22:27 UTC) #14
Peter Beverloo
nick@ is OOO, +kinuko maybe?
3 years, 8 months ago (2017-04-12 00:36:54 UTC) #20
kinuko
lgtm
3 years, 8 months ago (2017-04-12 02:09:12 UTC) #21
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/2809953002/40001
3 years, 8 months ago (2017-04-12 10:05:38 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 10:11:56 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/87a42b7af9035be518adf40266e4...

Powered by Google App Engine
This is Rietveld 408576698