Chromium Code Reviews| 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..98a7fdd663dccfd87f33d7bee14e458ce0a46d63 100644 |
| --- a/components/history/core/browser/download_row.h |
| +++ b/components/history/core/browser/download_row.h |
| @@ -26,6 +26,8 @@ struct DownloadRow { |
| const base::FilePath& target_path, |
| const std::vector<GURL>& url_chain, |
| const GURL& referrer, |
|
svaldez
2016/04/12 20:54:17
While here, could you rename this to 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; |