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

Unified Diff: content/browser/download/download_item_impl.h

Issue 8790006: Add download server IP address to the SafeBrowsing download protection ping. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years 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 | « content/browser/download/download_item.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 04326fccffc96dc17b320b2b9004ea0295abf123..df5f9ff6aeedceb082196dc575aabc28e0b87c4d 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -102,6 +102,7 @@ class CONTENT_EXPORT DownloadItemImpl : public DownloadItem {
virtual std::string GetMimeType() const OVERRIDE;
virtual std::string GetOriginalMimeType() const OVERRIDE;
virtual std::string GetReferrerCharset() const OVERRIDE;
+ virtual std::string GetRemoteAddress() const OVERRIDE;
virtual int64 GetTotalBytes() const OVERRIDE;
virtual void SetTotalBytes(int64 total_bytes) OVERRIDE;
virtual const std::string& GetHash() const OVERRIDE;
@@ -210,6 +211,10 @@ class CONTENT_EXPORT DownloadItemImpl : public DownloadItem {
// It's used to construct a suggested filename.
std::string referrer_charset_;
+ // The remote IP address where the download was fetched from. Copied from
+ // DownloadCreateInfo::remote_address.
+ std::string remote_address_;
+
// Total bytes expected
int64 total_bytes_;
« no previous file with comments | « content/browser/download/download_item.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698