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