diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 21:46:07 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-14 21:46:07 +0000 |
commit | 79558c2a026dd800a15d1dd0743a8d9a7e042601 (patch) | |
tree | 89af8ea30aedbf6ba3efbc1f0909c29d5ee440e9 /chrome/browser/download/download_item.h | |
parent | dfc3565886b90b6d5b0cae3f8e48f602d3293cf5 (diff) | |
download | chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.zip chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.tar.gz chromium_src-79558c2a026dd800a15d1dd0743a8d9a7e042601.tar.bz2 |
Fix bug 69468: Drag download does not work if there is URL redirection involved.
The fix is to keep track of the original URL.
BUG=69468
TEST=Manual test to verify.
Review URL: http://codereview.chromium.org/6131009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71494 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_item.h')
-rw-r--r-- | chrome/browser/download/download_item.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/download/download_item.h b/chrome/browser/download/download_item.h index 7471994..bc32f63 100644 --- a/chrome/browser/download/download_item.h +++ b/chrome/browser/download/download_item.h @@ -188,6 +188,7 @@ class DownloadItem { FilePath full_path() const { return full_path_; } void set_path_uniquifier(int uniquifier) { path_uniquifier_ = uniquifier; } GURL url() const { return url_; } + GURL original_url() const { return original_url_; } GURL referrer_url() const { return referrer_url_; } std::string mime_type() const { return mime_type_; } std::string original_mime_type() const { return original_mime_type_; } @@ -256,9 +257,13 @@ class DownloadItem { // path should be used as is. int path_uniquifier_; - // The URL from whence we came. + // The URL from which we are downloading. This is the final URL after any + // redirection by the server for |original_url_|. GURL url_; + // The original URL before any redirection by the server for this URL. + GURL original_url_; + // The URL of the page that initiated the download. GURL referrer_url_; |