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

Unified Diff: components/history/core/browser/download_row.h

Issue 1875033005: [Downloads/History] Add tab-url and tab-referrer-url to DownloadRow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guid-fix
Patch Set: Update expectations for DownloadUIController test. Created 4 years, 8 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
Index: components/history/core/browser/download_row.h
diff --git a/components/history/core/browser/download_row.h b/components/history/core/browser/download_row.h
index 3127c3f3d6cd1578542bcab0ee6a9e319d106a86..d1a6214e42c8df9a20436c4be7f533230e4b1d60 100644
--- a/components/history/core/browser/download_row.h
+++ b/components/history/core/browser/download_row.h
@@ -25,7 +25,9 @@ struct DownloadRow {
DownloadRow(const base::FilePath& current_path,
const base::FilePath& target_path,
const std::vector<GURL>& url_chain,
- const GURL& referrer,
+ const GURL& referrer_url,
+ const GURL& tab_url,
+ const GURL& tab_referrer_url,
const std::string& http_method,
const std::string& mime_type,
const std::string& original_mime_type,
@@ -65,6 +67,14 @@ struct DownloadRow {
// The URL that referred us. Is not changed by UpdateDownload().
GURL referrer_url;
+ // The URL of the tab that initiated the download, if any. Not changed by
+ // UpdateDownload().
+ GURL tab_url;
+
+ // The referrer of the tab that initialized the download, if any. Not changed
+ // by UpdateDownload();
+ GURL tab_referrer_url;
+
// HTTP method used for the request. GET is assumed if the method was not
// stored for a download in the history database.
std::string http_method;
« no previous file with comments | « components/history/core/browser/download_database.cc ('k') | components/history/core/browser/download_row.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698