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

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

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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) 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 // Tracks existing PrefServices, and the safe browsing preference on each. 210 // Tracks existing PrefServices, and the safe browsing preference on each.
211 // This is used to determine if any profile is currently using the safe 211 // This is used to determine if any profile is currently using the safe
212 // browsing service, and to start it up or shut it down accordingly. 212 // browsing service, and to start it up or shut it down accordingly.
213 // Accessed on UI thread. 213 // Accessed on UI thread.
214 std::map<PrefService*, PrefChangeRegistrar*> prefs_map_; 214 std::map<PrefService*, PrefChangeRegistrar*> prefs_map_;
215 215
216 // Used to track creation and destruction of profiles on the UI thread. 216 // Used to track creation and destruction of profiles on the UI thread.
217 content::NotificationRegistrar prefs_registrar_; 217 content::NotificationRegistrar prefs_registrar_;
218 218
219 // TODO(shess): Should csd_service_ be guarded by SAFE_BROWSING_CSD? Likewise
220 // for download_service_ and incident_service_?
221
219 // The ClientSideDetectionService is managed by the SafeBrowsingService, 222 // The ClientSideDetectionService is managed by the SafeBrowsingService,
220 // since its running state and lifecycle depends on SafeBrowsingService's. 223 // since its running state and lifecycle depends on SafeBrowsingService's.
221 // Accessed on UI thread. 224 // Accessed on UI thread.
222 scoped_ptr<safe_browsing::ClientSideDetectionService> csd_service_; 225 scoped_ptr<safe_browsing::ClientSideDetectionService> csd_service_;
223 226
224 // The DownloadProtectionService is managed by the SafeBrowsingService, 227 // The DownloadProtectionService is managed by the SafeBrowsingService,
225 // since its running state and lifecycle depends on SafeBrowsingService's. 228 // since its running state and lifecycle depends on SafeBrowsingService's.
226 // Accessed on UI thread. 229 // Accessed on UI thread.
227 scoped_ptr<safe_browsing::DownloadProtectionService> download_service_; 230 scoped_ptr<safe_browsing::DownloadProtectionService> download_service_;
228 231
(...skipping 14 matching lines...) Expand all
243 class SafeBrowsingServiceFactory { 246 class SafeBrowsingServiceFactory {
244 public: 247 public:
245 SafeBrowsingServiceFactory() { } 248 SafeBrowsingServiceFactory() { }
246 virtual ~SafeBrowsingServiceFactory() { } 249 virtual ~SafeBrowsingServiceFactory() { }
247 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 250 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
248 private: 251 private:
249 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 252 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
250 }; 253 };
251 254
252 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 255 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698