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

Unified Diff: chrome/browser/download/download_manager.h

Issue 7065015: For downloads requiring a user gesture, also require... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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
« no previous file with comments | « chrome/browser/download/download_item.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.h
===================================================================
--- chrome/browser/download/download_manager.h (revision 86341)
+++ chrome/browser/download/download_manager.h (working copy)
@@ -204,8 +204,6 @@
Profile* profile() { return profile_; }
- DownloadHistory* download_history() { return download_history_.get(); }
-
DownloadPrefs* download_prefs() { return download_prefs_.get(); }
// Creates the download item. Must be called on the UI thread.
@@ -232,7 +230,8 @@
// user action initiated the download, and whether the user has explicitly
// marked the file type as "auto open".
bool IsDangerous(const DownloadItem& download,
- const DownloadStateInfo& state);
+ const DownloadStateInfo& state,
+ bool visited_referrer_before);
// Called when the user has validated the download of a dangerous file.
void DangerousDownloadValidated(DownloadItem* download);
@@ -240,6 +239,11 @@
// Callback function after url is checked with safebrowsing service.
void CheckDownloadUrlDone(int32 download_id, bool is_dangerous_url);
+ // Callback function after we check whether the referrer URL has been visited
+ // before today.
+ void CheckVisitedReferrerBeforeDone(int32 download_id,
+ bool visited_referrer_before);
+
// Callback function after download file hash is checked with safebrowsing
// service.
void CheckDownloadHashDone(int32 download_id, bool is_dangerous_hash);
« no previous file with comments | « chrome/browser/download/download_item.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698