Searched refs:ClientSideDetectionService (Results 1 – 9 of 9) sorted by relevance
29 const int ClientSideDetectionService::kMaxReportsPerInterval = 3;31 const base::TimeDelta ClientSideDetectionService::kReportsInterval =33 const base::TimeDelta ClientSideDetectionService::kNegativeCacheInterval =35 const base::TimeDelta ClientSideDetectionService::kPositiveCacheInterval =38 const char ClientSideDetectionService::kClientReportPhishingUrl[] =46 const char ClientSideDetectionService::kClientModelUrl[] =49 struct ClientSideDetectionService::ClientReportInfo {54 ClientSideDetectionService::CacheState::CacheState(bool phish, base::Time time) in CacheState()58 ClientSideDetectionService::ClientSideDetectionService( in ClientSideDetectionService() function in safe_browsing::ClientSideDetectionService68 ClientSideDetectionService::~ClientSideDetectionService() { in ~ClientSideDetectionService()[all …]
81 factory_->SetFakeResponse(ClientSideDetectionService::kClientModelUrl, in SetModelFetchResponse()88 ClientSideDetectionService::kClientReportPhishingUrl, in SetClientReportPhishingResponse()102 make_linked_ptr(new ClientSideDetectionService::CacheState(is_phishing, in SetCache()107 ClientSideDetectionService::PhishingCache& cache = csd_service_->cache_; in TestCache()109 base::Time time = now - ClientSideDetectionService::kNegativeCacheInterval + in TestCache()112 make_linked_ptr(new ClientSideDetectionService::CacheState(false, in TestCache()115 time = now - ClientSideDetectionService::kNegativeCacheInterval - in TestCache()118 make_linked_ptr(new ClientSideDetectionService::CacheState(false, in TestCache()121 time = now - ClientSideDetectionService::kPositiveCacheInterval - in TestCache()124 make_linked_ptr(new ClientSideDetectionService::CacheState(true, time)); in TestCache()[all …]
48 class ClientSideDetectionService : public URLFetcher::Delegate {55 virtual ~ClientSideDetectionService();60 static ClientSideDetectionService* Create(114 ClientSideDetectionService(245 ScopedRunnableMethodFactory<ClientSideDetectionService> method_factory_;251 base::ScopedCallbackFactory<ClientSideDetectionService> callback_factory_;259 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionService);
21 class ClientSideDetectionService; variable60 void set_client_side_detection_service(ClientSideDetectionService* service);67 ClientSideDetectionService* csd_service_;
51 class MockClientSideDetectionService : public ClientSideDetectionService {54 : ClientSideDetectionService(model_path, NULL) {} in MockClientSideDetectionService()230 ClientSideDetectionService::ClientReportPhishingRequestCallback* cb; in TEST_F()261 ClientSideDetectionService::ClientReportPhishingRequestCallback* cb; in TEST_F()287 ClientSideDetectionService::ClientReportPhishingRequestCallback* cb; in TEST_F()343 ClientSideDetectionService::ClientReportPhishingRequestCallback* cb; in TEST_F()367 ClientSideDetectionService::ClientReportPhishingRequestCallback* cb_other; in TEST_F()
48 ClientSideDetectionService* csd_service, in ShouldClassifyUrlRequest()220 ClientSideDetectionService* csd_service_;381 ClientSideDetectionService* service) { in set_client_side_detection_service()
24 class ClientSideDetectionService; variable194 virtual safe_browsing::ClientSideDetectionService*
95 virtual safe_browsing::ClientSideDetectionService*231 scoped_ptr<safe_browsing::ClientSideDetectionService>
604 safe_browsing::ClientSideDetectionService*947 safe_browsing::ClientSideDetectionService::Create( in CreateSafeBrowsingDetectionService()