summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/ui_manager.h
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 18:41:06 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-05 18:41:06 +0000
commit700ad4d1cd2260f127cce497fabdda1989a7d919 (patch)
tree922130836558e0a696dda8e6baab0e7ee935ca90 /chrome/browser/safe_browsing/ui_manager.h
parent297d1f82d673ece7e42833edce103001a48044f1 (diff)
downloadchromium_src-700ad4d1cd2260f127cce497fabdda1989a7d919.zip
chromium_src-700ad4d1cd2260f127cce497fabdda1989a7d919.tar.gz
chromium_src-700ad4d1cd2260f127cce497fabdda1989a7d919.tar.bz2
[SafeBrowsing] Add accessors to provide an API providing SB status of current page.
This change adds the ability for callers to get notified when a page gets an SB hit, or access that information from the ClientSideDetectionHost. R=mattm@chromium.org Review URL: https://codereview.chromium.org/99283004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238997 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/ui_manager.h')
-rw-r--r--chrome/browser/safe_browsing/ui_manager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/ui_manager.h b/chrome/browser/safe_browsing/ui_manager.h
index 5c896ca..53a3c03 100644
--- a/chrome/browser/safe_browsing/ui_manager.h
+++ b/chrome/browser/safe_browsing/ui_manager.h
@@ -54,6 +54,15 @@ class SafeBrowsingUIManager
// was found.
class Observer {
public:
+ // The |resource| was classified as unsafe by SafeBrowsing.
+ // This method will be called every time an unsafe resource is
+ // loaded, even if it has already been whitelisted by the user.
+ // The |resource| must not be accessed after OnSafeBrowsingHit returns.
+ // This method will be called on the UI thread.
+ virtual void OnSafeBrowsingMatch(const UnsafeResource& resource) = 0;
+
+ // The |resource| was classified as unsafe by SafeBrowsing, and is
+ // not whitelisted.
// The |resource| must not be accessed after OnSafeBrowsingHit returns.
// This method will be called on the UI thread.
virtual void OnSafeBrowsingHit(const UnsafeResource& resource) = 0;