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

Unified Diff: chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h

Issue 1241583009: Async Safe Browsing check, on mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to reviews Created 5 years, 5 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
Index: chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
diff --git a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
index 5c3c78eb913d76939f2beaf1e07379b1f93c6a39..2c0f75840bfdfa9356c86ba2cf029da0a06baa24 100644
--- a/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
+++ b/chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h
@@ -30,13 +30,21 @@ class SafeBrowsingResourceThrottleFactory {
// caller has to make sure the factory stays alive and properly destroyed.
static void RegisterFactory(SafeBrowsingResourceThrottleFactory* factory);
- // Creates a new resource throttle for safe browsing
+ // Creates a new resource throttle for safe browsing, using the factory
+ // if there is one registered.
static content::ResourceThrottle* Create(
net::URLRequest* request,
content::ResourceContext* resource_context,
content::ResourceType resource_type,
SafeBrowsingService* service);
+ // Like above, but bypass the registered factory and create a true
+ // SafeBrowsingResourceThrottle.
+ static content::ResourceThrottle* CreateWithoutRegisteredFactory(
+ net::URLRequest* request,
+ content::ResourceType resource_type,
+ SafeBrowsingService* service);
+
protected:
SafeBrowsingResourceThrottleFactory() { }
virtual ~SafeBrowsingResourceThrottleFactory() { }

Powered by Google App Engine
This is Rietveld 408576698