summaryrefslogtreecommitdiff
path: root/chromium/content/browser/download/download_item_impl.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-06-02 10:43:26 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-06-02 10:44:03 +0200
commitbb91a70e24ac49fd21c1d7c8c91a216961da1e2d (patch)
tree4c2497e0b093c7b0a25d48e72659dca21a50569a /chromium/content/browser/download/download_item_impl.h
parent1ec92e71bb67445775ce64cb081ed25c3d7481f1 (diff)
parentb92421879c003a0857b2074f7e05b3bbbb326569 (diff)
downloadqtwebengine-chromium-bb91a70e24ac49fd21c1d7c8c91a216961da1e2d.tar.gz
Merge branch 'upstream-master' into 51-based
Change-Id: I08d36e04494c3bb0c04641ad7c8e53bf418975db
Diffstat (limited to 'chromium/content/browser/download/download_item_impl.h')
-rw-r--r--chromium/content/browser/download/download_item_impl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chromium/content/browser/download/download_item_impl.h b/chromium/content/browser/download/download_item_impl.h
index 402f70e9a4b..e7097008e59 100644
--- a/chromium/content/browser/download/download_item_impl.h
+++ b/chromium/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_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,
@@ -120,6 +119,7 @@ class CONTENT_EXPORT DownloadItemImpl
const std::vector<GURL>& GetUrlChain() const override;
const GURL& GetOriginalUrl() const override;
const GURL& GetReferrerUrl() const override;
+ const GURL& GetSiteUrl() const override;
const GURL& GetTabUrl() const override;
const GURL& GetTabReferrerUrl() const override;
std::string GetSuggestedFilename() const override;
@@ -523,6 +523,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_url_;
+
// The URL of the tab that initiated the download.
GURL tab_url_;