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

Unified Diff: content/browser/download/download_item_impl.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/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 802c5af06ead2b966da2705e8f85140791d39b62..2b3346e20091b99c398af860792cc94ba521d1fe 100644
--- a/content/browser/download/download_item_impl.h
+++ b/content/browser/download/download_item_impl.h
@@ -159,11 +159,13 @@ class CONTENT_EXPORT DownloadItemImpl
bool GetOpened() const override;
BrowserContext* GetBrowserContext() const override;
WebContents* GetWebContents() const override;
- void OnContentCheckCompleted(DownloadDangerType danger_type) override;
+ void OnContentCheckCompleted(DownloadDangerType danger_type,
+ const std::string& token) override;
void SetOpenWhenComplete(bool open) override;
void SetIsTemporary(bool temporary) override;
void SetOpened(bool opened) override;
void SetDisplayName(const base::FilePath& name) override;
+ std::string GetDownloadPingToken() const override;
std::string DebugString(bool verbose) const override;
// All remaining public interfaces virtual to allow for DownloadItemImpl
@@ -677,6 +679,9 @@ class CONTENT_EXPORT DownloadItemImpl
// Net log to use for this download.
const net::BoundNetLog bound_net_log_;
+ // Token from ClientDownloadResponse used to identify download ping.
+ std::string token_;
+
base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);

Powered by Google App Engine
This is Rietveld 408576698