| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace mojom { | 24 namespace mojom { |
| 25 class TrackedPreferenceValidationDelegate; | 25 class TrackedPreferenceValidationDelegate; |
| 26 } | 26 } |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace safe_browsing { | 29 namespace safe_browsing { |
| 30 | 30 |
| 31 class ClientSideDetectionService; | 31 class ClientSideDetectionService; |
| 32 class DownloadProtectionService; | 32 class DownloadProtectionService; |
| 33 class IncidentReportingService; | 33 class IncidentReportingService; |
| 34 class PasswordProtectionService; |
| 34 class ResourceRequestDetector; | 35 class ResourceRequestDetector; |
| 35 struct ResourceRequestInfo; | 36 struct ResourceRequestInfo; |
| 36 class SafeBrowsingService; | 37 class SafeBrowsingService; |
| 37 class SafeBrowsingDatabaseManager; | 38 class SafeBrowsingDatabaseManager; |
| 38 struct V4ProtocolConfig; | 39 struct V4ProtocolConfig; |
| 39 | 40 |
| 40 // Abstraction to help organize code for mobile vs full safe browsing modes. | 41 // Abstraction to help organize code for mobile vs full safe browsing modes. |
| 41 // This helper class should be owned by a SafeBrowsingService, and it handles | 42 // This helper class should be owned by a SafeBrowsingService, and it handles |
| 42 // responsibilities for safe browsing service classes that may or may not exist | 43 // responsibilities for safe browsing service classes that may or may not exist |
| 43 // for a given build config. e.g. No DownloadProtectionService on mobile. | 44 // for a given build config. e.g. No DownloadProtectionService on mobile. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 content::DownloadManager* download_manager) = 0; | 100 content::DownloadManager* download_manager) = 0; |
| 100 | 101 |
| 101 // Returns nullptr for any service that is not available. | 102 // Returns nullptr for any service that is not available. |
| 102 virtual ClientSideDetectionService* GetCsdService() = 0; | 103 virtual ClientSideDetectionService* GetCsdService() = 0; |
| 103 virtual DownloadProtectionService* GetDownloadService() = 0; | 104 virtual DownloadProtectionService* GetDownloadService() = 0; |
| 104 | 105 |
| 105 virtual void StartOnIOThread( | 106 virtual void StartOnIOThread( |
| 106 net::URLRequestContextGetter* url_request_context_getter, | 107 net::URLRequestContextGetter* url_request_context_getter, |
| 107 const V4ProtocolConfig& v4_config) = 0; | 108 const V4ProtocolConfig& v4_config) = 0; |
| 108 virtual void StopOnIOThread(bool shutdown) = 0; | 109 virtual void StopOnIOThread(bool shutdown) = 0; |
| 110 |
| 111 virtual void CreatePasswordProtectionService(Profile* profile) = 0; |
| 112 virtual void RemovePasswordProtectionService(Profile* profile) = 0; |
| 113 virtual PasswordProtectionService* GetPasswordProtectionService( |
| 114 Profile* profile) const = 0; |
| 109 }; | 115 }; |
| 110 | 116 |
| 111 } // namespace safe_browsing | 117 } // namespace safe_browsing |
| 112 | 118 |
| 113 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ | 119 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_H_ |
| OLD | NEW |