Home
last modified time | relevance | path

Searched refs:SafeBrowsingService (Results 1 – 23 of 23) sorted by relevance

/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_service.cc84 SafeBrowsingServiceFactory* SafeBrowsingService::factory_ = NULL;
90 virtual SafeBrowsingService* CreateSafeBrowsingService() { in CreateSafeBrowsingService()
91 return new SafeBrowsingService(); in CreateSafeBrowsingService()
105 struct SafeBrowsingService::WhiteListedEntry {
112 SafeBrowsingService::UnsafeResource::UnsafeResource() in UnsafeResource()
120 SafeBrowsingService::UnsafeResource::~UnsafeResource() {} in ~UnsafeResource()
122 SafeBrowsingService::SafeBrowsingCheck::SafeBrowsingCheck() in SafeBrowsingCheck()
131 SafeBrowsingService::SafeBrowsingCheck::~SafeBrowsingCheck() {} in ~SafeBrowsingCheck()
133 void SafeBrowsingService::Client::OnSafeBrowsingResult( in OnSafeBrowsingResult()
154 SafeBrowsingService* SafeBrowsingService::CreateSafeBrowsingService() { in CreateSafeBrowsingService()
[all …]
Dsafe_browsing_blocking_page_test.cc28 class FakeSafeBrowsingService : public SafeBrowsingService {
51 SafeBrowsingService::SafeBrowsingCheck check; in OnCheckBrowseURLDone()
94 virtual SafeBrowsingService* CreateSafeBrowsingService() { in CreateSafeBrowsingService()
102 FakeMalwareDetails(SafeBrowsingService* sb_service, in FakeMalwareDetails()
104 const SafeBrowsingService::UnsafeResource& unsafe_resource) in FakeMalwareDetails()
161 SafeBrowsingService* sb_service, in CreateMalwareDetails()
163 const SafeBrowsingService::UnsafeResource& unsafe_resource) { in CreateMalwareDetails()
180 TestSafeBrowsingBlockingPage(SafeBrowsingService* service, in TestSafeBrowsingBlockingPage()
209 SafeBrowsingService* service, in CreateSafeBrowsingPage()
219 public SafeBrowsingService::Client {
[all …]
Dmalware_details.h45 SafeBrowsingService* sb_service,
47 const SafeBrowsingService::UnsafeResource& resource);
69 MalwareDetails(SafeBrowsingService* sb_service,
71 const SafeBrowsingService::UnsafeResource& resource);
111 scoped_refptr<SafeBrowsingService> sb_service_;
113 const SafeBrowsingService::UnsafeResource resource_;
143 SafeBrowsingService* sb_service,
145 const SafeBrowsingService::UnsafeResource& unsafe_resource) = 0;
Dsafe_browsing_service_browsertest.cc175 TestProtocolManager(SafeBrowsingService* sb_service, in TestProtocolManager()
196 virtual void GetFullHash(SafeBrowsingService::SafeBrowsingCheck* check, in GetFullHash()
203 sb_service_, &SafeBrowsingService::HandleGetHashResults, in GetFullHash()
220 SafeBrowsingService* sb_service_;
231 SafeBrowsingService* sb_service, in CreateProtocolManager()
348 int64 DownloadUrlCheckTimeout(SafeBrowsingService* sb_service) { in DownloadUrlCheckTimeout()
352 int64 DownloadHashCheckTimeout(SafeBrowsingService* sb_service) { in DownloadHashCheckTimeout()
356 void SetDownloadUrlCheckTimeout(SafeBrowsingService* sb_service, int64 ms) { in SetDownloadUrlCheckTimeout()
360 void SetDownloadHashCheckTimeout(SafeBrowsingService* sb_service, int64 ms) { in SetDownloadHashCheckTimeout()
436 public SafeBrowsingService::Client {
[all …]
Dsafe_browsing_blocking_page.h47 typedef std::vector<SafeBrowsingService::UnsafeResource> UnsafeResourceList;
58 SafeBrowsingService* service,
59 const SafeBrowsingService::UnsafeResource& resource);
80 SafeBrowsingBlockingPage(SafeBrowsingService* service,
127 static void NotifySafeBrowsingService(SafeBrowsingService* sb_service,
138 SafeBrowsingService* sb_service_;
170 SafeBrowsingService* service,
Dsafe_browsing_blocking_page.cc103 SafeBrowsingService* service, in CreateSafeBrowsingPage()
123 SafeBrowsingService* sb_service, in SafeBrowsingBlockingPage()
146 unsafe_resources[0].threat_type == SafeBrowsingService::URL_MALWARE && in SafeBrowsingBlockingPage()
178 SafeBrowsingService::URL_MALWARE) { in GetHTMLContents()
183 SafeBrowsingService::URL_PHISHING); in GetHTMLContents()
222 const SafeBrowsingService::UnsafeResource& resource = *iter; in PopulateMultipleThreatStringDictionary()
224 if (resource.threat_type == SafeBrowsingService::URL_MALWARE) { in PopulateMultipleThreatStringDictionary()
230 DCHECK(resource.threat_type == SafeBrowsingService::URL_PHISHING); in PopulateMultipleThreatStringDictionary()
408 if (unsafe_resources_[0].threat_type == SafeBrowsingService::URL_MALWARE) { in CommandReceived()
411 SafeBrowsingService::URL_PHISHING) { in CommandReceived()
[all …]
Dprotocol_manager.h54 SafeBrowsingService* sb_service,
92 SafeBrowsingService* sb_service,
115 virtual void GetFullHash(SafeBrowsingService::SafeBrowsingCheck* check,
141 SafeBrowsingService::UrlCheckResult threat_type,
203 SafeBrowsingService* sb_service,
246 SafeBrowsingService::UrlCheckResult threat_type) const;
314 SafeBrowsingService* sb_service_;
348 SafeBrowsingService::SafeBrowsingCheck*> HashRequests;
Dsafe_browsing_service.h42 class SafeBrowsingService
43 : public base::RefCountedThreadSafe<SafeBrowsingService> {
133 static SafeBrowsingService* CreateSafeBrowsingService();
262 SafeBrowsingService();
264 virtual ~SafeBrowsingService();
283 friend class base::RefCountedThreadSafe<SafeBrowsingService>;
464 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService);
472 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
Dprotocol_manager.cc46 SafeBrowsingService* sb_service, in CreateProtocolManager()
70 SafeBrowsingService* sb_service, in Create()
88 SafeBrowsingService* sb_service, in SafeBrowsingProtocolManager()
158 SafeBrowsingService::SafeBrowsingCheck* check, in GetFullHash()
233 SafeBrowsingService::SafeBrowsingCheck* check = it->second; in OnURLFetchComplete()
465 sb_service_, &SafeBrowsingService::OnNewMacKeys, client_key_, in HandleServiceResponse()
652 SafeBrowsingService::UrlCheckResult threat_type, in ReportSafeBrowsingHit()
767 SafeBrowsingService::UrlCheckResult threat_type) const { in SafeBrowsingHitUrl()
768 DCHECK(threat_type == SafeBrowsingService::URL_MALWARE || in SafeBrowsingHitUrl()
769 threat_type == SafeBrowsingService::URL_PHISHING || in SafeBrowsingHitUrl()
[all …]
Dclient_side_detection_host.cc49 SafeBrowsingService* sb_service, in ShouldClassifyUrlRequest()
223 scoped_refptr<SafeBrowsingService> sb_service_;
230 class CsdClient : public SafeBrowsingService::Client {
365 &SafeBrowsingService::DisplayBlockingPage, in MaybeShowPhishingWarning()
372 SafeBrowsingService::URL_PHISHING, in MaybeShowPhishingWarning()
386 SafeBrowsingService* service) { in set_safe_browsing_service()
Dmalware_details.cc39 SafeBrowsingService* sb_service, in CreateMalwareDetails()
41 const SafeBrowsingService::UnsafeResource& unsafe_resource) { in CreateMalwareDetails()
60 SafeBrowsingService* sb_service, in NewMalwareDetails()
62 const SafeBrowsingService::UnsafeResource& resource) { in NewMalwareDetails()
72 SafeBrowsingService* sb_service, in MalwareDetails()
74 const SafeBrowsingService::UnsafeResource& resource) in MalwareDetails()
Dmalware_details_unittest.cc126 MalwareDetailsWrap(SafeBrowsingService* sb_service, in MalwareDetailsWrap()
128 const SafeBrowsingService::UnsafeResource& unsafe_resource, in MalwareDetailsWrap()
137 class MockSafeBrowsingService : public SafeBrowsingService {
204 void InitResource(SafeBrowsingService::UnsafeResource* resource, in InitResource()
210 resource->threat_type = SafeBrowsingService::URL_MALWARE; in InitResource()
291 SafeBrowsingService::UnsafeResource resource; in TEST_F()
322 SafeBrowsingService::UnsafeResource resource; in TEST_F()
361 SafeBrowsingService::UnsafeResource resource; in TEST_F()
416 SafeBrowsingService::UnsafeResource resource; in TEST_F()
440 SafeBrowsingService::UnsafeResource resource; in TEST_F()
[all …]
Dsafe_browsing_blocking_page_unittest.cc26 TestSafeBrowsingBlockingPage(SafeBrowsingService* service, in TestSafeBrowsingBlockingPage()
38 class TestSafeBrowsingService: public SafeBrowsingService {
60 SafeBrowsingService* service, in CreateSafeBrowsingPage()
69 public SafeBrowsingService::Client {
93 SafeBrowsingService::UrlCheckResult result) { in OnUrlCheckResult()
122 SafeBrowsingService::UnsafeResource resource; in ShowInterstitial()
157 void InitResource(SafeBrowsingService::UnsafeResource* resource, in InitResource()
163 resource->threat_type = SafeBrowsingService::URL_MALWARE; in InitResource()
Dclient_side_detection_host.h64 void set_safe_browsing_service(SafeBrowsingService* service);
69 scoped_refptr<SafeBrowsingService> sb_service_;
Dsafe_browsing_test.cc228 void CheckUrl(SafeBrowsingService::Client* helper, const GURL& url) { in CheckUrl()
319 SafeBrowsingService* safe_browsing_service_;
343 public SafeBrowsingService::Client,
354 const GURL& url, SafeBrowsingService::UrlCheckResult result) { in OnBrowseUrlCheckResult()
358 result == SafeBrowsingService::SAFE); in OnBrowseUrlCheckResult()
365 SafeBrowsingService::UrlCheckResult result) { in OnDownloadUrlCheckResult()
Dprotocol_manager_unittest.cc210 true, SafeBrowsingService::URL_MALWARE).spec()); in TEST_F()
220 false, SafeBrowsingService::URL_PHISHING).spec()); in TEST_F()
229 false, SafeBrowsingService::BINARY_MALWARE_URL).spec()); in TEST_F()
238 false, SafeBrowsingService::BINARY_MALWARE_HASH).spec()); in TEST_F()
Dclient_side_detection_host_unittest.cc69 class MockSafeBrowsingService : public SafeBrowsingService {
81 void InvokeOnBlockingPageComplete(SafeBrowsingService::Client* client) { in InvokeOnBlockingPageComplete()
304 SafeBrowsingService::Client* client; in TEST_F()
311 SafeBrowsingService::URL_PHISHING, in TEST_F()
382 SafeBrowsingService::Client* client; in TEST_F()
389 SafeBrowsingService::URL_PHISHING, in TEST_F()
/external/chromium/chrome/browser/download/
Ddownload_safe_browsing_client.h32 : public SafeBrowsingService::Client,
58 SafeBrowsingService::UrlCheckResult result);
60 const std::string& hash, SafeBrowsingService::UrlCheckResult result);
82 void SafeBrowsingCheckUrlDone(SafeBrowsingService::UrlCheckResult result);
83 void SafeBrowsingCheckHashDone(SafeBrowsingService::UrlCheckResult result);
86 void ReportMalware(SafeBrowsingService::UrlCheckResult result);
98 scoped_refptr<SafeBrowsingService> sb_service_;
Ddownload_safe_browsing_client.cc83 OnDownloadUrlCheckResult(url_chain, SafeBrowsingService::SAFE); in CheckDownloadUrlOnIOThread()
90 SafeBrowsingService::UrlCheckResult result) { in OnDownloadUrlCheckResult()
107 OnDownloadHashCheckResult(hash, SafeBrowsingService::SAFE); in CheckDownloadHashOnIOThread()
113 const std::string& hash, SafeBrowsingService::UrlCheckResult result) { in OnDownloadHashCheckResult()
123 SafeBrowsingService::UrlCheckResult result) { in SafeBrowsingCheckUrlDone()
127 bool is_dangerous = result != SafeBrowsingService::SAFE; in SafeBrowsingCheckUrlDone()
142 SafeBrowsingService::UrlCheckResult result) { in SafeBrowsingCheckHashDone()
146 bool is_dangerous = result != SafeBrowsingService::SAFE; in SafeBrowsingCheckHashDone()
161 SafeBrowsingService::UrlCheckResult result) { in ReportMalware()
/external/chromium/chrome/browser/renderer_host/
Dsafe_browsing_resource_handler.h43 public SafeBrowsingService::Client {
49 SafeBrowsingService* safe_browsing,
69 const GURL& url, SafeBrowsingService::UrlCheckResult result);
106 SafeBrowsingService::UrlCheckResult result);
127 SafeBrowsingService::UrlCheckResult safe_browsing_result_;
147 scoped_refptr<SafeBrowsingService> safe_browsing_;
Dsafe_browsing_resource_handler.cc30 SafeBrowsingService* safe_browsing, in SafeBrowsingResourceHandler()
34 safe_browsing_result_(SafeBrowsingService::SAFE), in SafeBrowsingResourceHandler()
94 OnBrowseUrlCheckResult(deferred_url_, SafeBrowsingService::SAFE); in OnCheckUrlTimeout()
144 const GURL& url, SafeBrowsingService::UrlCheckResult result) { in OnBrowseUrlCheckResult()
154 if (result == SafeBrowsingService::SAFE) { in OnBrowseUrlCheckResult()
179 SafeBrowsingService::UrlCheckResult result) { in StartDisplayingBlockingPage()
208 safe_browsing_result_ = SafeBrowsingService::SAFE; in OnBlockingPageComplete()
238 safe_browsing_result_ = SafeBrowsingService::SAFE; in CheckUrl()
/external/chromium/chrome/browser/
Dmemory_purger.cc36 explicit PurgeMemoryIOHelper(SafeBrowsingService* safe_browsing_service) in PurgeMemoryIOHelper()
50 scoped_refptr<SafeBrowsingService> safe_browsing_service_;
/external/chromium/chrome/browser/prefs/
Dbrowser_prefs.cc96 SafeBrowsingService::RegisterPrefs(local_state); in RegisterLocalState()