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

Unified Diff: chrome/browser/safe_browsing/download_protection_service.h

Issue 8536041: This CL integrates the new SafeBrowsing download service class (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix uninitialized variable issue. Created 9 years, 1 month 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: chrome/browser/safe_browsing/download_protection_service.h
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h
index 5eee9396b4d8a9f1365e97b5608c98c2d55cd7b5..9442cbe9acc7609bb2a42a558397cab350d13de8 100644
--- a/chrome/browser/safe_browsing/download_protection_service.h
+++ b/chrome/browser/safe_browsing/download_protection_service.h
@@ -37,7 +37,8 @@ class DownloadProtectionService {
// TODO(noelutz): we're missing some fields here: server IPs,
// tab URL redirect chain, ...
struct DownloadInfo {
- FilePath local_file;
+ FilePath local_file; // Where the download is currently stored.
+ FilePath target_file; // Where the download will eventually be stored.
std::vector<GURL> download_url_chain;
GURL referrer_url;
std::string sha256_hash;
@@ -45,7 +46,7 @@ class DownloadProtectionService {
bool user_initiated;
DownloadInfo();
~DownloadInfo();
-
+ std::string DebugString() const;
// Creates a DownloadInfo from a DownloadItem object.
static DownloadInfo FromDownloadItem(const DownloadItem& item);
};

Powered by Google App Engine
This is Rietveld 408576698