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

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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)
Patch Set: rebase Created 3 years, 9 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
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 16 matching lines...) Expand all
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 struct ResourceRequestInfo; 56 struct ResourceRequestInfo;
52 struct SafeBrowsingProtocolConfig; 57 struct SafeBrowsingProtocolConfig;
53 class SafeBrowsingDatabaseManager; 58 class SafeBrowsingDatabaseManager;
54 class SafeBrowsingNavigationObserverManager; 59 class SafeBrowsingNavigationObserverManager;
55 class SafeBrowsingPingManager; 60 class SafeBrowsingPingManager;
56 class SafeBrowsingProtocolManager; 61 class SafeBrowsingProtocolManager;
57 class SafeBrowsingProtocolManagerDelegate; 62 class SafeBrowsingProtocolManagerDelegate;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 158
154 SafeBrowsingPingManager* ping_manager() const; 159 SafeBrowsingPingManager* ping_manager() const;
155 160
156 // This may be NULL if v4 is not enabled by experiment. 161 // This may be NULL if v4 is not enabled by experiment.
157 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager() 162 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager()
158 const; 163 const;
159 164
160 // Returns a preference validation delegate that adds incidents to the 165 // Returns a preference validation delegate that adds incidents to the
161 // incident reporting service for validation failures. Returns NULL if the 166 // incident reporting service for validation failures. Returns NULL if the
162 // service is not applicable for the given profile. 167 // service is not applicable for the given profile.
163 std::unique_ptr<TrackedPreferenceValidationDelegate> 168 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>
164 CreatePreferenceValidationDelegate(Profile* profile) const; 169 CreatePreferenceValidationDelegate(Profile* profile) const;
165 170
166 // Registers |callback| to be run after some delay following process launch. 171 // Registers |callback| to be run after some delay following process launch.
167 // |callback| will be dropped if the service is not applicable for the 172 // |callback| will be dropped if the service is not applicable for the
168 // process. 173 // process.
169 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); 174 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback);
170 175
171 // Adds |download_manager| to the set monitored by safe browsing. 176 // Adds |download_manager| to the set monitored by safe browsing.
172 void AddDownloadManager(content::DownloadManager* download_manager); 177 void AddDownloadManager(content::DownloadManager* download_manager);
173 178
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 SafeBrowsingServiceFactory() { } 348 SafeBrowsingServiceFactory() { }
344 virtual ~SafeBrowsingServiceFactory() { } 349 virtual ~SafeBrowsingServiceFactory() { }
345 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; 350 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0;
346 private: 351 private:
347 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); 352 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory);
348 }; 353 };
349 354
350 } // namespace safe_browsing 355 } // namespace safe_browsing
351 356
352 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ 357 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698