Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_service.h

Issue 6611023: The optional Malware Details also collects HTTP cache information. See design... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // The Safe Browsing service is responsible for downloading anti-phishing and 5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. 6 // anti-malware tables and checking urls against them.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
10 #pragma once 10 #pragma once
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 // Called on the IO thread to reset the database. 230 // Called on the IO thread to reset the database.
231 void ResetDatabase(); 231 void ResetDatabase();
232 232
233 // Log the user perceived delay caused by SafeBrowsing. This delay is the time 233 // Log the user perceived delay caused by SafeBrowsing. This delay is the time
234 // delta starting from when we would have started reading data from the 234 // delta starting from when we would have started reading data from the
235 // network, and ending when the SafeBrowsing check completes indicating that 235 // network, and ending when the SafeBrowsing check completes indicating that
236 // the current page is 'safe'. 236 // the current page is 'safe'.
237 void LogPauseDelay(base::TimeDelta time); 237 void LogPauseDelay(base::TimeDelta time);
238 238
239 // When a safebrowsing blocking page goes away, it calls this method 239 // Called by the MalwareDetails with the serialized protocol buffer,
240 // so the service can serialize and send MalwareDetails. 240 // so the service can send it over.
noelutz 2011/04/06 20:34:19 maybe mention that you expect this to be called on
panayiotis 2011/04/07 20:08:32 Done.
241 virtual void ReportMalwareDetails(scoped_refptr<MalwareDetails> details); 241 virtual void SendSerializedMalwareDetails(const std::string& serialized);
242 242
243 // Report hits to the unsafe contents (malware, phishing, unsafe download URL) 243 // Report hits to the unsafe contents (malware, phishing, unsafe download URL)
244 // to the server. Can only be called on UI thread. 244 // to the server. Can only be called on UI thread.
245 void ReportSafeBrowsingHit(const GURL& malicious_url, 245 void ReportSafeBrowsingHit(const GURL& malicious_url,
246 const GURL& page_url, 246 const GURL& page_url,
247 const GURL& referrer_url, 247 const GURL& referrer_url,
248 bool is_subresource, 248 bool is_subresource,
249 UrlCheckResult threat_type); 249 UrlCheckResult threat_type);
250 250
251 protected: 251 protected:
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 class SafeBrowsingServiceFactory { 458 class SafeBrowsingServiceFactory {
459 public: 459 public:
460 SafeBrowsingServiceFactory() { } 460 SafeBrowsingServiceFactory() { }
461 virtual ~SafeBrowsingServiceFactory() { } 461 virtual ~SafeBrowsingServiceFactory() { }
462 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 462 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
463 private: 463 private:
464 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 464 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
465 }; 465 };
466 466
467 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 467 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698