diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 18:41:06 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 18:41:06 +0000 |
commit | 700ad4d1cd2260f127cce497fabdda1989a7d919 (patch) | |
tree | 922130836558e0a696dda8e6baab0e7ee935ca90 /chrome/browser/safe_browsing/ui_manager.h | |
parent | 297d1f82d673ece7e42833edce103001a48044f1 (diff) | |
download | chromium_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.h | 9 |
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; |