Home
last modified time | relevance | path

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

/external/chromium_org/chrome/browser/safe_browsing/
Dui_manager.cc40 SBThreatType threat_type; member
45 threat_type(SB_THREAT_TYPE_SAFE), in UnsafeResource()
101 resource.threat_type == SB_THREAT_TYPE_URL_MALWARE) { in DisplayBlockingPage()
120 if (resource.threat_type != SB_THREAT_TYPE_SAFE) { in DisplayBlockingPage()
151 if (resource.threat_type != SB_THREAT_TYPE_SAFE && in DisplayBlockingPage()
172 resource.is_subresource, resource.threat_type, in DisplayBlockingPage()
175 if (resource.threat_type != SB_THREAT_TYPE_SAFE) { in DisplayBlockingPage()
188 SBThreatType threat_type, in ReportSafeBrowsingHit() argument
198 threat_type, post_data)); in ReportSafeBrowsingHit()
216 SBThreatType threat_type, in ReportSafeBrowsingHitOnIOThread() argument
[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()
Dsafe_browsing_blocking_page.cc170 SBThreatType threat_type = resource.threat_type; in SafeBrowsingBlockingPage() local
171 if (threat_type == SB_THREAT_TYPE_URL_MALWARE || in SafeBrowsingBlockingPage()
172 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL) { in SafeBrowsingBlockingPage()
174 } else if (threat_type == SB_THREAT_TYPE_URL_HARMFUL) { in SafeBrowsingBlockingPage()
177 DCHECK(threat_type == SB_THREAT_TYPE_URL_PHISHING || in SafeBrowsingBlockingPage()
178 threat_type == SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL); in SafeBrowsingBlockingPage()
219 unsafe_resources[0].threat_type == SB_THREAT_TYPE_URL_MALWARE && in SafeBrowsingBlockingPage()
378 DCHECK(unsafe_resources_[element_index].threat_type == in CommandReceived()
380 unsafe_resources_[element_index].threat_type == in CommandReceived()
677 if (unsafe_resources[0].threat_type == in IsMainPageLoadBlocked()
Dui_manager.h48 SBThreatType threat_type; member
124 SBThreatType threat_type,
145 SBThreatType threat_type,
Dping_manager.h45 SBThreatType threat_type,
70 SBThreatType threat_type) const;
Ddownload_protection_service.cc165 virtual bool IsDangerous(SBThreatType threat_type) const = 0;
171 void CheckDone(SBThreatType threat_type) { in CheckDone() argument
173 IsDangerous(threat_type) ? in CheckDone()
180 if (threat_type != SB_THREAT_TYPE_SAFE) { in CheckDone()
186 this, threat_type)); in CheckDone()
190 void ReportMalware(SBThreatType threat_type) { in ReportMalware() argument
203 threat_type, in ReportMalware()
249 virtual bool IsDangerous(SBThreatType threat_type) const OVERRIDE { in IsDangerous()
250 return threat_type == SB_THREAT_TYPE_BINARY_MALWARE_URL; in IsDangerous()
254 SBThreatType threat_type) OVERRIDE { in OnCheckDownloadUrlResult() argument
[all …]
Dsafe_browsing_blocking_page_test.cc113 void SetURLThreatType(const GURL& url, SBThreatType threat_type) { in SetURLThreatType() argument
114 badurls[url.spec()] = threat_type; in SetURLThreatType()
394 void SetURLThreatType(const GURL& url, SBThreatType threat_type) { in SetURLThreatType() argument
400 service->fake_database_manager()->SetURLThreatType(url, threat_type); in SetURLThreatType()
405 GURL SetupWarningAndNavigate(SBThreatType threat_type) { in SetupWarningAndNavigate() argument
407 SetURLThreatType(url, threat_type); in SetupWarningAndNavigate()
Dclient_side_detection_host.cc420 if (resource.threat_type != SB_THREAT_TYPE_URL_PHISHING && in OnSafeBrowsingHit()
421 resource.threat_type != SB_THREAT_TYPE_URL_MALWARE) in OnSafeBrowsingHit()
596 resource.threat_type = SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL; in MaybeShowPhishingWarning()
627 resource.threat_type = SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL; in MaybeShowMalwareWarning()
Ddatabase_manager.h104 SBThreatType threat_type, in OnCheckBrowseUrlResult() argument
109 SBThreatType threat_type) {} in OnCheckDownloadUrlResult() argument
Dclient_side_detection_host_unittest.cc351 EXPECT_EQ(resource.threat_type, csd_host_->unsafe_resource_->threat_type); in TestUnsafeResourceCopied()
364 resource.threat_type = SB_THREAT_TYPE_URL_MALWARE; in SetUnsafeSubResourceForCurrent()
397 resource.threat_type = SB_THREAT_TYPE_URL_MALWARE; in NavigateWithSBHitAndCommit()
569 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, resource.threat_type); in TEST_F()
658 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL, resource.threat_type); in TEST_F()
811 EXPECT_EQ(SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL, resource.threat_type); in TEST_F()
Dsafe_browsing_test.cc353 SBThreatType threat_type, in OnCheckBrowseUrlResult() argument
358 threat_type == SB_THREAT_TYPE_SAFE); in OnCheckBrowseUrlResult()
Dsafe_browsing_service_browsertest.cc366 arg.threat_type != SB_THREAT_TYPE_SAFE);
756 SBThreatType threat_type) OVERRIDE { in OnCheckDownloadUrlResult() argument
757 threat_type_ = threat_type; in OnCheckDownloadUrlResult()
Dbrowser_feature_extractor.cc294 static_cast<double>(info.unsafe_resource->threat_type), in ExtractBrowseInfoFeatures()
Ddatabase_manager.cc64 const SBThreatType threat_type, in IsExpectedThreat() argument
68 threat_type); in IsExpectedThreat()
Dsafe_browsing_blocking_page_unittest.cc201 resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in InitResource()
Dmalware_details_unittest.cc229 resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in InitResource()
Dbrowser_feature_extractor_unittest.cc580 browse_info_->unsafe_resource->threat_type = SB_THREAT_TYPE_URL_MALWARE; in TEST_F()
Ddownload_protection_service_unittest.cc182 ACTION_P(CheckDownloadUrlDone, threat_type) { in ACTION_P() argument
191 check->url_results[i] = threat_type; in ACTION_P()
/external/chromium_org/chrome/browser/ui/webui/interstitials/
Dinterstitial_ui.cc92 SBThreatType threat_type = SB_THREAT_TYPE_URL_MALWARE; in CreateSafeBrowsingBlockingPage() local
106 threat_type = SB_THREAT_TYPE_URL_MALWARE; in CreateSafeBrowsingBlockingPage()
108 threat_type = SB_THREAT_TYPE_URL_PHISHING; in CreateSafeBrowsingBlockingPage()
110 threat_type = SB_THREAT_TYPE_CLIENT_SIDE_MALWARE_URL; in CreateSafeBrowsingBlockingPage()
112 threat_type = SB_THREAT_TYPE_CLIENT_SIDE_PHISHING_URL; in CreateSafeBrowsingBlockingPage()
124 resource.threat_type = threat_type; in CreateSafeBrowsingBlockingPage()
/external/chromium_org/chrome/browser/renderer_host/
Dsafe_browsing_resource_throttle.cc85 SBThreatType threat_type, in OnCheckBrowseUrlResult() argument
95 threat_type = SB_THREAT_TYPE_SAFE; in OnCheckBrowseUrlResult()
99 threat_type_ = threat_type; in OnCheckBrowseUrlResult()
102 if (threat_type == SB_THREAT_TYPE_SAFE) { in OnCheckBrowseUrlResult()
127 resource.threat_type = threat_type; in OnCheckBrowseUrlResult()
/external/chromium_org/chrome/browser/prerender/
Dprerender_browsertest.cc695 void SetThreatTypeForUrl(const GURL& url, SBThreatType threat_type) { in SetThreatTypeForUrl() argument
697 threat_type_ = threat_type; in SetThreatTypeForUrl()