Chromium Code Reviews| Index: chrome/browser/safe_browsing/database_manager.h |
| diff --git a/chrome/browser/safe_browsing/database_manager.h b/chrome/browser/safe_browsing/database_manager.h |
| index f46e2948f3a641af8c3cbb23a223cbe30c2f187f..e93279bd07e6e0eabf57c8b583a4e4a62e0e142d 100644 |
| --- a/chrome/browser/safe_browsing/database_manager.h |
| +++ b/chrome/browser/safe_browsing/database_manager.h |
| @@ -16,6 +16,7 @@ |
| #include "base/memory/ref_counted.h" |
| #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
| +#include "content/public/common/resource_type.h" |
| #include "url/gurl.h" |
| // Interface to either the locally-managed or a remotely-managed database. |
| @@ -43,10 +44,19 @@ class SafeBrowsingDatabaseManager |
| const std::set<std::string>& threats) {} |
| }; |
| + |
| // Returns true if URL-checking is supported on this build+device. |
| // If false, calls to CheckBrowseUrl may dcheck-fail. |
| virtual bool IsSupported() const = 0; |
| + // Returns true if checks are never done synchronously, and therefore |
| + // allways have some latency. |
|
mattm
2015/10/19 20:19:40
s/allways/always/
Nathan Parker
2015/10/19 21:03:22
Done.
|
| + virtual bool ChecksAreAlwaysAsync() const = 0; |
| + |
| + // Returns true if this resource type should be checked. |
| + virtual bool CanCheckResourceType( |
| + content::ResourceType resource_type) const = 0; |
| + |
| // Returns true if the url's scheme can be checked. |
| virtual bool CanCheckUrl(const GURL& url) const = 0; |