OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 #include "content/public/browser/notification_observer.h" | 27 #include "content/public/browser/notification_observer.h" |
28 #include "content/public/browser/notification_registrar.h" | 28 #include "content/public/browser/notification_registrar.h" |
29 | 29 |
30 #if defined(FULL_SAFE_BROWSING) | 30 #if defined(FULL_SAFE_BROWSING) |
31 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb
ack.h" | 31 #include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callb
ack.h" |
32 #endif | 32 #endif |
33 | 33 |
34 class PrefChangeRegistrar; | 34 class PrefChangeRegistrar; |
35 class PrefService; | 35 class PrefService; |
36 class Profile; | 36 class Profile; |
37 class TrackedPreferenceValidationDelegate; | |
38 | 37 |
39 namespace content { | 38 namespace content { |
40 class DownloadManager; | 39 class DownloadManager; |
41 } | 40 } |
42 | 41 |
43 namespace net { | 42 namespace net { |
44 class URLRequest; | 43 class URLRequest; |
45 class URLRequestContextGetter; | 44 class URLRequestContextGetter; |
46 } | 45 } |
47 | 46 |
| 47 namespace prefs { |
| 48 namespace mojom { |
| 49 class TrackedPreferenceValidationDelegate; |
| 50 } |
| 51 } |
| 52 |
48 namespace safe_browsing { | 53 namespace safe_browsing { |
49 class ClientSideDetectionService; | 54 class ClientSideDetectionService; |
50 class DownloadProtectionService; | 55 class DownloadProtectionService; |
51 class PasswordProtectionService; | 56 class PasswordProtectionService; |
52 struct ResourceRequestInfo; | 57 struct ResourceRequestInfo; |
53 struct SafeBrowsingProtocolConfig; | 58 struct SafeBrowsingProtocolConfig; |
54 class SafeBrowsingDatabaseManager; | 59 class SafeBrowsingDatabaseManager; |
55 class SafeBrowsingNavigationObserverManager; | 60 class SafeBrowsingNavigationObserverManager; |
56 class SafeBrowsingPingManager; | 61 class SafeBrowsingPingManager; |
57 class SafeBrowsingProtocolManager; | 62 class SafeBrowsingProtocolManager; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 161 |
157 // This may be NULL if v4 is not enabled by experiment. | 162 // This may be NULL if v4 is not enabled by experiment. |
158 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager() | 163 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager() |
159 const; | 164 const; |
160 | 165 |
161 PasswordProtectionService* password_protection_service(); | 166 PasswordProtectionService* password_protection_service(); |
162 | 167 |
163 // Returns a preference validation delegate that adds incidents to the | 168 // Returns a preference validation delegate that adds incidents to the |
164 // incident reporting service for validation failures. Returns NULL if the | 169 // incident reporting service for validation failures. Returns NULL if the |
165 // service is not applicable for the given profile. | 170 // service is not applicable for the given profile. |
166 std::unique_ptr<TrackedPreferenceValidationDelegate> | 171 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate> |
167 CreatePreferenceValidationDelegate(Profile* profile) const; | 172 CreatePreferenceValidationDelegate(Profile* profile) const; |
168 | 173 |
169 // Registers |callback| to be run after some delay following process launch. | 174 // Registers |callback| to be run after some delay following process launch. |
170 // |callback| will be dropped if the service is not applicable for the | 175 // |callback| will be dropped if the service is not applicable for the |
171 // process. | 176 // process. |
172 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); | 177 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); |
173 | 178 |
174 // Adds |download_manager| to the set monitored by safe browsing. | 179 // Adds |download_manager| to the set monitored by safe browsing. |
175 void AddDownloadManager(content::DownloadManager* download_manager); | 180 void AddDownloadManager(content::DownloadManager* download_manager); |
176 | 181 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 SafeBrowsingServiceFactory() { } | 355 SafeBrowsingServiceFactory() { } |
351 virtual ~SafeBrowsingServiceFactory() { } | 356 virtual ~SafeBrowsingServiceFactory() { } |
352 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 357 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
353 private: | 358 private: |
354 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 359 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
355 }; | 360 }; |
356 | 361 |
357 } // namespace safe_browsing | 362 } // namespace safe_browsing |
358 | 363 |
359 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 364 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |