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

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

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
Index: content/browser/download/download_item_impl.cc
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index 02b5b6446d320767414e642856991a8fe3946c3b..1c3236034f7d023d6e2cd8e25c0eb9a3242bc594 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -177,6 +177,7 @@ DownloadItemImpl::DownloadItemImpl(
mime_type_(info.mime_type),
original_mime_type_(info.original_mime_type),
referrer_charset_(info.referrer_charset),
+ remote_address_(info.remote_address),
total_bytes_(info.total_bytes),
received_bytes_(0),
bytes_per_sec_(0),
@@ -849,6 +850,9 @@ std::string DownloadItemImpl::GetOriginalMimeType() const {
std::string DownloadItemImpl::GetReferrerCharset() const {
return referrer_charset_;
}
+std::string DownloadItemImpl::GetRemoteAddress() const {
+ return remote_address_;
+}
int64 DownloadItemImpl::GetTotalBytes() const { return total_bytes_; }
void DownloadItemImpl::SetTotalBytes(int64 total_bytes) {
total_bytes_ = total_bytes;
« no previous file with comments | « content/browser/download/download_item_impl.h ('k') | content/browser/download/download_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698