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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; | 146 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; |
147 | 147 |
148 scoped_refptr<SafeBrowsingNavigationObserverManager> | 148 scoped_refptr<SafeBrowsingNavigationObserverManager> |
149 navigation_observer_manager(); | 149 navigation_observer_manager(); |
150 | 150 |
151 SafeBrowsingProtocolManager* protocol_manager() const; | 151 SafeBrowsingProtocolManager* protocol_manager() const; |
152 | 152 |
153 SafeBrowsingPingManager* ping_manager() const; | 153 SafeBrowsingPingManager* ping_manager() const; |
154 | 154 |
155 // This may be NULL if v4 is not enabled by experiment. | 155 // This may be NULL if v4 is not enabled by experiment. |
156 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager() | 156 virtual const scoped_refptr<SafeBrowsingDatabaseManager>& |
157 const; | 157 v4_local_database_manager() const; |
158 | 158 |
159 // Returns a preference validation delegate that adds incidents to the | 159 // Returns a preference validation delegate that adds incidents to the |
160 // incident reporting service for validation failures. Returns NULL if the | 160 // incident reporting service for validation failures. Returns NULL if the |
161 // service is not applicable for the given profile. | 161 // service is not applicable for the given profile. |
162 std::unique_ptr<TrackedPreferenceValidationDelegate> | 162 std::unique_ptr<TrackedPreferenceValidationDelegate> |
163 CreatePreferenceValidationDelegate(Profile* profile) const; | 163 CreatePreferenceValidationDelegate(Profile* profile) const; |
164 | 164 |
165 // Registers |callback| to be run after some delay following process launch. | 165 // Registers |callback| to be run after some delay following process launch. |
166 // |callback| will be dropped if the service is not applicable for the | 166 // |callback| will be dropped if the service is not applicable for the |
167 // process. | 167 // process. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 SafeBrowsingServiceFactory() { } | 338 SafeBrowsingServiceFactory() { } |
339 virtual ~SafeBrowsingServiceFactory() { } | 339 virtual ~SafeBrowsingServiceFactory() { } |
340 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 340 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
341 private: | 341 private: |
342 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 342 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
343 }; | 343 }; |
344 | 344 |
345 } // namespace safe_browsing | 345 } // namespace safe_browsing |
346 | 346 |
347 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 347 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |