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 27 matching lines...) Expand all Loading... |
38 class DownloadManager; | 38 class DownloadManager; |
39 } | 39 } |
40 | 40 |
41 namespace net { | 41 namespace net { |
42 class URLRequest; | 42 class URLRequest; |
43 class URLRequestContextGetter; | 43 class URLRequestContextGetter; |
44 } | 44 } |
45 | 45 |
46 namespace safe_browsing { | 46 namespace safe_browsing { |
47 class ClientSideDetectionService; | 47 class ClientSideDetectionService; |
| 48 class FileTypePoliciesManager; |
48 class DownloadProtectionService; | 49 class DownloadProtectionService; |
49 struct ResourceRequestInfo; | 50 struct ResourceRequestInfo; |
50 struct SafeBrowsingProtocolConfig; | 51 struct SafeBrowsingProtocolConfig; |
51 class SafeBrowsingDatabaseManager; | 52 class SafeBrowsingDatabaseManager; |
52 class SafeBrowsingPingManager; | 53 class SafeBrowsingPingManager; |
53 class SafeBrowsingProtocolManager; | 54 class SafeBrowsingProtocolManager; |
54 class SafeBrowsingProtocolManagerDelegate; | 55 class SafeBrowsingProtocolManagerDelegate; |
55 class SafeBrowsingServiceFactory; | 56 class SafeBrowsingServiceFactory; |
56 class SafeBrowsingUIManager; | 57 class SafeBrowsingUIManager; |
57 class SafeBrowsingURLRequestContextGetter; | 58 class SafeBrowsingURLRequestContextGetter; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 virtual SafeBrowsingUIManager* CreateUIManager(); | 175 virtual SafeBrowsingUIManager* CreateUIManager(); |
175 | 176 |
176 // Registers all the delayed analysis with the incident reporting service. | 177 // Registers all the delayed analysis with the incident reporting service. |
177 // This is where you register your process-wide, profile-independent analysis. | 178 // This is where you register your process-wide, profile-independent analysis. |
178 virtual void RegisterAllDelayedAnalysis(); | 179 virtual void RegisterAllDelayedAnalysis(); |
179 | 180 |
180 // Return a ptr to DatabaseManager's delegate, or NULL if it doesn't have one. | 181 // Return a ptr to DatabaseManager's delegate, or NULL if it doesn't have one. |
181 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate(); | 182 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate(); |
182 | 183 |
183 std::unique_ptr<ServicesDelegate> services_delegate_; | 184 std::unique_ptr<ServicesDelegate> services_delegate_; |
| 185 std::unique_ptr<FileTypePoliciesManager> file_type_policies_manager_; |
184 | 186 |
185 private: | 187 private: |
186 friend class SafeBrowsingServiceFactoryImpl; | 188 friend class SafeBrowsingServiceFactoryImpl; |
187 friend struct content::BrowserThread::DeleteOnThread< | 189 friend struct content::BrowserThread::DeleteOnThread< |
188 content::BrowserThread::UI>; | 190 content::BrowserThread::UI>; |
189 friend class base::DeleteHelper<SafeBrowsingService>; | 191 friend class base::DeleteHelper<SafeBrowsingService>; |
190 friend class SafeBrowsingServerTest; | 192 friend class SafeBrowsingServerTest; |
191 friend class SafeBrowsingServiceTest; | 193 friend class SafeBrowsingServiceTest; |
192 friend class SafeBrowsingURLRequestContextGetter; | 194 friend class SafeBrowsingURLRequestContextGetter; |
193 | 195 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 SafeBrowsingServiceFactory() { } | 288 SafeBrowsingServiceFactory() { } |
287 virtual ~SafeBrowsingServiceFactory() { } | 289 virtual ~SafeBrowsingServiceFactory() { } |
288 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 290 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
289 private: | 291 private: |
290 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 292 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
291 }; | 293 }; |
292 | 294 |
293 } // namespace safe_browsing | 295 } // namespace safe_browsing |
294 | 296 |
295 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 297 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |