| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 net::URLRequestContextGetter* url_request_context(); | 124 net::URLRequestContextGetter* url_request_context(); |
| 125 | 125 |
| 126 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; | 126 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; |
| 127 | 127 |
| 128 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; | 128 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; |
| 129 | 129 |
| 130 SafeBrowsingProtocolManager* protocol_manager() const; | 130 SafeBrowsingProtocolManager* protocol_manager() const; |
| 131 | 131 |
| 132 SafeBrowsingPingManager* ping_manager() const; | 132 SafeBrowsingPingManager* ping_manager() const; |
| 133 | 133 |
| 134 const scoped_refptr<V4LocalDatabaseManager>& v4_local_database_manager() |
| 135 const; |
| 136 |
| 134 // Returns a preference validation delegate that adds incidents to the | 137 // Returns a preference validation delegate that adds incidents to the |
| 135 // incident reporting service for validation failures. Returns NULL if the | 138 // incident reporting service for validation failures. Returns NULL if the |
| 136 // service is not applicable for the given profile. | 139 // service is not applicable for the given profile. |
| 137 std::unique_ptr<TrackedPreferenceValidationDelegate> | 140 std::unique_ptr<TrackedPreferenceValidationDelegate> |
| 138 CreatePreferenceValidationDelegate(Profile* profile) const; | 141 CreatePreferenceValidationDelegate(Profile* profile) const; |
| 139 | 142 |
| 140 // Registers |callback| to be run after some delay following process launch. | 143 // Registers |callback| to be run after some delay following process launch. |
| 141 // |callback| will be dropped if the service is not applicable for the | 144 // |callback| will be dropped if the service is not applicable for the |
| 142 // process. | 145 // process. |
| 143 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); | 146 void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 SafeBrowsingServiceFactory() { } | 293 SafeBrowsingServiceFactory() { } |
| 291 virtual ~SafeBrowsingServiceFactory() { } | 294 virtual ~SafeBrowsingServiceFactory() { } |
| 292 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 295 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
| 293 private: | 296 private: |
| 294 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 297 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
| 295 }; | 298 }; |
| 296 | 299 |
| 297 } // namespace safe_browsing | 300 } // namespace safe_browsing |
| 298 | 301 |
| 299 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 302 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |