This source file includes following definitions.
- Create
#include "chrome/browser/renderer_host/safe_browsing_resource_throttle_factory.h"
#if defined(FULL_SAFE_BROWSING)
#include "chrome/browser/renderer_host/safe_browsing_resource_throttle.h"
#endif
using content::ResourceThrottle;
SafeBrowsingResourceThrottleFactory*
SafeBrowsingResourceThrottleFactory::factory_ = NULL;
ResourceThrottle* SafeBrowsingResourceThrottleFactory::Create(
net::URLRequest* request,
bool is_subresource,
SafeBrowsingService* service) {
#if defined(FULL_SAFE_BROWSING)
return new SafeBrowsingResourceThrottle(request, is_subresource, service);
#elif defined(MOBILE_SAFE_BROWSING)
if (factory_)
return factory_->CreateResourceThrottle(request, is_subresource, service);
return NULL;
#else
#error Need to define {FULL|MOBILE} SAFE_BROWSING mode.
#endif
}