summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_safe_browsing_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/download_safe_browsing_client.h')
-rw-r--r--chrome/browser/download/download_safe_browsing_client.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/download/download_safe_browsing_client.h b/chrome/browser/download/download_safe_browsing_client.h
index 0527192..a6d0712 100644
--- a/chrome/browser/download/download_safe_browsing_client.h
+++ b/chrome/browser/download/download_safe_browsing_client.h
@@ -35,9 +35,10 @@ class DownloadSBClient
DownloadSBClient(int32 download_id,
const std::vector<GURL>& url_chain,
- const GURL& referrer_url);
+ const GURL& referrer_url,
+ bool safe_browsing_enabled);
- // Call safebrowsing service to verifiy the download.
+ // Call safebrowsing service to verify the download.
// For each DownloadSBClient instance, either CheckDownloadUrl or
// CheckDownloadHash can be called, and be called only once.
// DownloadSBClient instance.
@@ -110,6 +111,10 @@ class DownloadSBClient
// When a safebrowsing check starts, for stats purpose.
base::TimeTicks start_time_;
+ // Whether the profile from which this client was created has enabled the
+ // safe browsing service.
+ bool safe_browsing_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadSBClient);
};