Index: content/browser/download/download_item_impl.h |
diff --git a/content/browser/download/download_item_impl.h b/content/browser/download/download_item_impl.h |
index 52fbbb0af432ec0b93137db0839742e02a5e2028..4e20427de9fbfee187203e91c218dfdc058dc36f 100644 |
--- a/content/browser/download/download_item_impl.h |
+++ b/content/browser/download/download_item_impl.h |
@@ -58,6 +58,7 @@ class CONTENT_EXPORT DownloadItemImpl |
const base::FilePath& target_path, |
const std::vector<GURL>& url_chain, |
const GURL& referrer_url, |
+ const GURL& site_instance_url, |
const GURL& tab_url, |
const GURL& tab_referrer_url, |
const std::string& mime_type, |
@@ -77,8 +78,6 @@ class CONTENT_EXPORT DownloadItemImpl |
// Constructing for a regular download. |
// |bound_net_log| is constructed externally for our use. |
- // TODO(asanka): Get rid of the DownloadCreateInfo parameter since active |
- // downloads end up at Start() immediately after creation. |
DownloadItemImpl(DownloadItemImplDelegate* delegate, |
uint32_t id, |
const DownloadCreateInfo& info, |
@@ -121,6 +120,7 @@ class CONTENT_EXPORT DownloadItemImpl |
const std::vector<GURL>& GetUrlChain() const override; |
const GURL& GetOriginalUrl() const override; |
const GURL& GetReferrerUrl() const override; |
+ const GURL& GetSiteInstanceUrl() const override; |
const GURL& GetTabUrl() const override; |
const GURL& GetTabReferrerUrl() const override; |
std::string GetSuggestedFilename() const override; |
@@ -526,6 +526,9 @@ class CONTENT_EXPORT DownloadItemImpl |
// The URL of the page that initiated the download. |
GURL referrer_url_; |
+ // Site URL for the site instance that initiated this download. |
+ GURL site_instance_url_; |
+ |
// The URL of the tab that initiated the download. |
GURL tab_url_; |