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

Unified Diff: content/public/browser/download_item.h

Issue 2029903002: Add token field to ClientSafeBrowsingReportReqeust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak comments Created 4 years, 6 months 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/public/browser/download_item.h
diff --git a/content/public/browser/download_item.h b/content/public/browser/download_item.h
index b499639c2fe59aa057eaf7912edce4702c17001a..23044f5ee2756c1e829600f6f812c41d3d07591e 100644
--- a/content/public/browser/download_item.h
+++ b/content/public/browser/download_item.h
@@ -323,7 +323,8 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// Called if a check of the download contents was performed and the results of
// the test are available. This should only be called after AllDataSaved() is
// true.
- virtual void OnContentCheckCompleted(DownloadDangerType danger_type) = 0;
+ virtual void OnContentCheckCompleted(DownloadDangerType danger_type,
+ const std::string& token) = 0;
// Mark the download to be auto-opened when completed.
virtual void SetOpenWhenComplete(bool open) = 0;
@@ -340,6 +341,9 @@ class CONTENT_EXPORT DownloadItem : public base::SupportsUserData {
// return |name|. Has no effect on the final target filename.
virtual void SetDisplayName(const base::FilePath& name) = 0;
+ // Get token from ClientDownloadResponse.
+ virtual std::string GetDownloadPingToken() const = 0;
+
// Debug/testing -------------------------------------------------------------
virtual std::string DebugString(bool verbose) const = 0;
};

Powered by Google App Engine
This is Rietveld 408576698