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

Unified Diff: chrome/browser/download/download_item.h

Issue 6131009: Fix bug 69468: Drag download does not work if there is URL redirection involv... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/download/download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_item.h
===================================================================
--- chrome/browser/download/download_item.h (revision 71082)
+++ chrome/browser/download/download_item.h (working copy)
@@ -188,6 +188,7 @@
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_; }
Paweł Hajdan Jr. 2011/01/13 08:47:59 We try to avoid adding more accessors like this on
Randy Smith (Not in Mondays) 2011/01/14 19:43:21 It's sorta like the difference between structures
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_; }
@@ -259,6 +260,9 @@
// The URL from whence we came.
GURL url_;
+ // The original URL before any redirection.
Paweł Hajdan Jr. 2011/01/13 08:47:59 Now we have three URLs, and it's super-easy to con
Randy Smith (Not in Mondays) 2011/01/14 19:43:21 I agree with this. I'd suggest changing the doc o
+ GURL original_url_;
+
// The URL of the page that initiated the download.
GURL referrer_url_;
« no previous file with comments | « no previous file | chrome/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698