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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // incident reporting service for validation failures. Returns NULL if the | 148 // incident reporting service for validation failures. Returns NULL if the |
149 // service is not applicable for the given profile. | 149 // service is not applicable for the given profile. |
150 scoped_ptr<TrackedPreferenceValidationDelegate> | 150 scoped_ptr<TrackedPreferenceValidationDelegate> |
151 CreatePreferenceValidationDelegate(Profile* profile) const; | 151 CreatePreferenceValidationDelegate(Profile* profile) const; |
152 | 152 |
153 #if defined(FULL_SAFE_BROWSING) | 153 #if defined(FULL_SAFE_BROWSING) |
154 // Registers |callback| to be run after some delay following process launch. | 154 // Registers |callback| to be run after some delay following process launch. |
155 // |callback| will be dropped if the service is not applicable for the | 155 // |callback| will be dropped if the service is not applicable for the |
156 // process. | 156 // process. |
157 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); | 157 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); |
| 158 void RegisterExtendedReportingOnlyDelayedAnalysisCallback( |
| 159 const DelayedAnalysisCallback& callback); |
158 #endif | 160 #endif |
159 | 161 |
160 // Adds |download_manager| to the set monitored by safe browsing. | 162 // Adds |download_manager| to the set monitored by safe browsing. |
161 void AddDownloadManager(content::DownloadManager* download_manager); | 163 void AddDownloadManager(content::DownloadManager* download_manager); |
162 | 164 |
163 // Observes resource requests made by the renderer and reports suspicious | 165 // Observes resource requests made by the renderer and reports suspicious |
164 // activity. | 166 // activity. |
165 void OnResourceRequest(const net::URLRequest* request); | 167 void OnResourceRequest(const net::URLRequest* request); |
166 | 168 |
167 // Type for subscriptions to SafeBrowsing service state. | 169 // Type for subscriptions to SafeBrowsing service state. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 SafeBrowsingServiceFactory() { } | 318 SafeBrowsingServiceFactory() { } |
317 virtual ~SafeBrowsingServiceFactory() { } | 319 virtual ~SafeBrowsingServiceFactory() { } |
318 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 320 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
319 private: | 321 private: |
320 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 322 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
321 }; | 323 }; |
322 | 324 |
323 } // namespace safe_browsing | 325 } // namespace safe_browsing |
324 | 326 |
325 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 327 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |