diff options
author | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 22:20:27 +0000 |
---|---|---|
committer | asanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-13 22:20:27 +0000 |
commit | e87e58314a411681ced31ef3e13b71a33abdd6da (patch) | |
tree | 24621208c8feb71bd1b253b43ccc4d43f6afa625 /content/browser/download/download_item_impl.h | |
parent | 3feb9f51ff39974956e87b3fbc1424318d790531 (diff) | |
download | chromium_src-e87e58314a411681ced31ef3e13b71a33abdd6da.zip chromium_src-e87e58314a411681ced31ef3e13b71a33abdd6da.tar.gz chromium_src-e87e58314a411681ced31ef3e13b71a33abdd6da.tar.bz2 |
[Downloads] Update origin info after each response.
When a download is resumed, a new URL request is sent out. The response
received for this request may contain new ETag and Last-Modified
information which should be used for subsequent resumption attempts.
Otherwise if a resource changes (along with the corresponding ETag)
subsequent partial resumption attempts will all fail even if it should
have succeeded.
BUG=7648
Review URL: https://codereview.chromium.org/74523002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_item_impl.h')
-rw-r--r-- | content/browser/download/download_item_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h index 2086a54..804afa6 100644 --- a/content/browser/download/download_item_impl.h +++ b/content/browser/download/download_item_impl.h @@ -163,6 +163,11 @@ class CONTENT_EXPORT DownloadItemImpl // INTERRUPTED state. virtual ResumeMode GetResumeMode() const; + // Notify the download item that new origin information is available due to a + // resumption request receiving a response. + virtual void MergeOriginInfoOnResume( + const DownloadCreateInfo& new_create_info); + // State transition operations on regular downloads -------------------------- // Start the download. |