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

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

Issue 1024943002: Add domain request detection to incident reporting service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove empty line for consistency Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class URLRequestContextGetter; 52 class URLRequestContextGetter;
53 } 53 }
54 54
55 namespace safe_browsing { 55 namespace safe_browsing {
56 class ClientSideDetectionService; 56 class ClientSideDetectionService;
57 class DownloadProtectionService; 57 class DownloadProtectionService;
58 58
59 #if defined(FULL_SAFE_BROWSING) 59 #if defined(FULL_SAFE_BROWSING)
60 class IncidentReportingService; 60 class IncidentReportingService;
61 class OffDomainInclusionDetector; 61 class OffDomainInclusionDetector;
62 class ScriptRequestDetector; 62 class ResourceRequestDetector;
63 #endif 63 #endif
64 } 64 }
65 65
66 // Construction needs to happen on the main thread. 66 // Construction needs to happen on the main thread.
67 // The SafeBrowsingService owns both the UI and Database managers which do 67 // The SafeBrowsingService owns both the UI and Database managers which do
68 // the heavylifting of safebrowsing service. Both of these managers stay 68 // the heavylifting of safebrowsing service. Both of these managers stay
69 // alive until SafeBrowsingService is destroyed, however, they are disabled 69 // alive until SafeBrowsingService is destroyed, however, they are disabled
70 // permanently when Shutdown method is called. 70 // permanently when Shutdown method is called.
71 class SafeBrowsingService 71 class SafeBrowsingService
72 : public base::RefCountedThreadSafe< 72 : public base::RefCountedThreadSafe<
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 scoped_refptr<SafeBrowsingUIManager> ui_manager_; 262 scoped_refptr<SafeBrowsingUIManager> ui_manager_;
263 263
264 // The database manager handles the database and download logic. Accessed on 264 // The database manager handles the database and download logic. Accessed on
265 // both UI and IO thread. 265 // both UI and IO thread.
266 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_; 266 scoped_refptr<SafeBrowsingDatabaseManager> database_manager_;
267 267
268 #if defined(FULL_SAFE_BROWSING) 268 #if defined(FULL_SAFE_BROWSING)
269 scoped_ptr<safe_browsing::OffDomainInclusionDetector> 269 scoped_ptr<safe_browsing::OffDomainInclusionDetector>
270 off_domain_inclusion_detector_; 270 off_domain_inclusion_detector_;
271 271
272 scoped_ptr<safe_browsing::ScriptRequestDetector> script_request_detector_; 272 scoped_ptr<safe_browsing::ResourceRequestDetector> resource_request_detector_;
273 #endif 273 #endif
274 274
275 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService); 275 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService);
276 }; 276 };
277 277
278 // Factory for creating SafeBrowsingService. Useful for tests. 278 // Factory for creating SafeBrowsingService. Useful for tests.
279 class SafeBrowsingServiceFactory { 279 class SafeBrowsingServiceFactory {
280 public: 280 public:
281 SafeBrowsingServiceFactory() { } 281 SafeBrowsingServiceFactory() { }
282 virtual ~SafeBrowsingServiceFactory() { } 282 virtual ~SafeBrowsingServiceFactory() { }
283 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 283 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
284 private: 284 private:
285 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 285 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
286 }; 286 };
287 287
288 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 288 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698