Home
last modified time | relevance | path

Searched refs:threat_type (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/chrome/browser/safe_browsing/
Dui_manager.cc39 SBThreatType threat_type; member
44 threat_type(SB_THREAT_TYPE_SAFE), in UnsafeResource()
102 if (resource.threat_type != SB_THREAT_TYPE_SAFE) { in DisplayBlockingPage()
133 if (resource.threat_type != SB_THREAT_TYPE_SAFE && in DisplayBlockingPage()
154 resource.is_subresource, resource.threat_type, in DisplayBlockingPage()
157 if (resource.threat_type != SB_THREAT_TYPE_SAFE) { in DisplayBlockingPage()
170 SBThreatType threat_type, in ReportSafeBrowsingHit() argument
180 threat_type, post_data)); in ReportSafeBrowsingHit()
198 SBThreatType threat_type, in ReportSafeBrowsingHitOnIOThread() argument
209 << threat_type; in ReportSafeBrowsingHitOnIOThread()
[all …]
Dsafe_browsing_blocking_page.cc213 (unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_MALWARE || in CreateSafeBrowsingPage()
214 unsafe_resources[0].threat_type == in CreateSafeBrowsingPage()
216 unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_PHISHING || in CreateSafeBrowsingPage()
217 unsafe_resources[0].threat_type == in CreateSafeBrowsingPage()
264 SBThreatType threat_type = resource.threat_type; in SafeBrowsingBlockingPage() local
265 if (threat_type == SB_THREAT_TYPE_URL_MALWARE || in SafeBrowsingBlockingPage()
266 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL) { in SafeBrowsingBlockingPage()
269 DCHECK(threat_type == SB_THREAT_TYPE_URL_PHISHING || in SafeBrowsingBlockingPage()
270 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL); in SafeBrowsingBlockingPage()
307 unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_MALWARE && in SafeBrowsingBlockingPage()
[all …]
Dping_manager.cc66 SBThreatType threat_type, in ReportSafeBrowsingHit() argument
70 threat_type); in ReportSafeBrowsingHit()
101 SBThreatType threat_type) const { in SafeBrowsingHitUrl()
102 DCHECK(threat_type == SB_THREAT_TYPE_URL_MALWARE || in SafeBrowsingHitUrl()
103 threat_type == SB_THREAT_TYPE_URL_PHISHING || in SafeBrowsingHitUrl()
104 threat_type == SB_THREAT_TYPE_BINARY_MALWARE_URL || in SafeBrowsingHitUrl()
105 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL || in SafeBrowsingHitUrl()
106 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL); in SafeBrowsingHitUrl()
110 switch (threat_type) { in SafeBrowsingHitUrl()
Dui_manager.h47 SBThreatType threat_type; member
122 SBThreatType threat_type,
143 SBThreatType threat_type,
Dping_manager.h45 SBThreatType threat_type,
70 SBThreatType threat_type) const;
Ddownload_protection_service.cc161 virtual bool IsDangerous(SBThreatType threat_type) const = 0;
167 void CheckDone(SBThreatType threat_type) { in CheckDone() argument
169 IsDangerous(threat_type) ? in CheckDone()
176 if (threat_type != SB_THREAT_TYPE_SAFE) { in CheckDone()
182 this, threat_type)); in CheckDone()
186 void ReportMalware(SBThreatType threat_type) { in ReportMalware() argument
199 threat_type, in ReportMalware()
245 virtual bool IsDangerous(SBThreatType threat_type) const OVERRIDE { in IsDangerous()
246 return threat_type == SB_THREAT_TYPE_BINARY_MALWARE_URL; in IsDangerous()
250 SBThreatType threat_type) OVERRIDE { in OnCheckDownloadUrlResult() argument
[all …]
Dsafe_browsing_blocking_page_test.cc115 void SetURLThreatType(const GURL& url, SBThreatType threat_type) { in SetURLThreatType() argument
116 badurls[url.spec()] = threat_type; in SetURLThreatType()
461 void SetURLThreatType(const GURL& url, SBThreatType threat_type) { in SetURLThreatType() argument
467 service->fake_database_manager()->SetURLThreatType(url, threat_type); in SetURLThreatType()
472 GURL SetupWarningAndNavigate(SBThreatType threat_type) { in SetupWarningAndNavigate() argument
474 SetURLThreatType(url, threat_type); in SetupWarningAndNavigate()
Dclient_side_detection_host.cc419 if (resource.threat_type != SB_THREAT_TYPE_URL_PHISHING && in OnSafeBrowsingHit()
420 resource.threat_type != SB_THREAT_TYPE_URL_MALWARE) in OnSafeBrowsingHit()
595 resource.threat_type = SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL; in MaybeShowPhishingWarning()
626 resource.threat_type = SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL; in MaybeShowMalwareWarning()
Ddatabase_manager.h103 SBThreatType threat_type) {} in OnCheckBrowseUrlResult() argument
107 SBThreatType threat_type) {} in OnCheckDownloadUrlResult() argument
Dclient_side_detection_host_unittest.cc352 EXPECT_EQ(resource.threat_type, csd_host_->unsafe_resource_->threat_type); in TestUnsafeResourceCopied()
365 resource.threat_type = SB_THREAT_TYPE_URL_MALWARE; in SetUnsafeSubResourceForCurrent()
398 resource.threat_type = SB_THREAT_TYPE_URL_MALWARE; in NavigateWithSBHitAndCommit()
573 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, resource.threat_type); in TEST_F()
663 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, resource.threat_type); in TEST_F()
816 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL, resource.threat_type); in TEST_F()
Dsafe_browsing_blocking_page_unittest.cc116 (unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_MALWARE || in CreateSafeBrowsingPage()
117 unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_PHISHING)) { in CreateSafeBrowsingPage()
242 resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in InitResource()
Dsafe_browsing_test.cc350 SBThreatType threat_type) OVERRIDE { in OnCheckBrowseUrlResult() argument
354 threat_type == SB_THREAT_TYPE_SAFE); in OnCheckBrowseUrlResult()
Dsafe_browsing_service_browsertest.cc362 arg.threat_type != SB_THREAT_TYPE_SAFE);
648 SBThreatType threat_type) OVERRIDE { in OnCheckDownloadUrlResult() argument
649 threat_type_ = threat_type; in OnCheckDownloadUrlResult()
Ddatabase_manager.cc64 const SBThreatType threat_type, in IsExpectedThreat() argument
68 threat_type); in IsExpectedThreat()
Dbrowser_feature_extractor.cc307 static_cast<double>(info.unsafe_resource->threat_type), in ExtractBrowseInfoFeatures()
Dbrowser_feature_extractor_unittest.cc575 browse_info_->unsafe_resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in TEST_F()
Dmalware_details_unittest.cc229 resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in InitResource()
Ddownload_protection_service_unittest.cc175 ACTION_P(CheckDownloadUrlDone, threat_type) { in ACTION_P() argument
184 check->url_results[i] = threat_type; in ACTION_P()
/external/chromium_org/chrome/browser/renderer_host/
Dsafe_browsing_resource_throttle.cc83 const GURL& url, SBThreatType threat_type) { in OnCheckBrowseUrlResult() argument
90 threat_type_ = threat_type; in OnCheckBrowseUrlResult()
93 if (threat_type == SB_THREAT_TYPE_SAFE) { in OnCheckBrowseUrlResult()
117 resource.threat_type = threat_type; in OnCheckBrowseUrlResult()
/external/chromium_org/chrome/browser/prerender/
Dprerender_browsertest.cc677 void SetThreatTypeForUrl(const GURL& url, SBThreatType threat_type) { in SetThreatTypeForUrl() argument
679 threat_type_ = threat_type; in SetThreatTypeForUrl()