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

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

Issue 4822002: Send malware reports when a user opts-in from the safe browsing interstitial ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/safe_browsing_service.h
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_service.h (revision 68800)
+++ chrome/browser/safe_browsing/safe_browsing_service.h (working copy)
@@ -23,6 +23,7 @@
#include "googleurl/src/gurl.h"
#include "webkit/glue/resource_type.h"
+class MalwareDetails;
class PrefService;
class SafeBrowsingDatabase;
class SafeBrowsingProtocolManager;
@@ -181,6 +182,10 @@
// the current page is 'safe'.
void LogPauseDelay(base::TimeDelta time);
+ // When a safebrowsing blocking page goes away, it calls this method
+ // so the service can serialize and send MalwareDetails.
+ virtual void ReportMalwareDetails(scoped_refptr<MalwareDetails> details);
+
protected:
// Creates the safe browsing service. Need to initialize before using.
SafeBrowsingService();
@@ -286,8 +291,8 @@
// Invoked on the UI thread to show the blocking page.
void DoDisplayBlockingPage(const UnsafeResource& resource);
- // Report any pages that contain malware or phishing to the SafeBrowsing
- // service.
+ // As soon as we create a blocking page, we schedule this method to
+ // report hits to the malware or phishing list to the server.
void ReportSafeBrowsingHit(const GURL& malicious_url,
const GURL& page_url,
const GURL& referrer_url,

Powered by Google App Engine
This is Rietveld 408576698