| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate(); | 227 virtual SafeBrowsingProtocolManagerDelegate* GetProtocolManagerDelegate(); |
| 228 | 228 |
| 229 std::unique_ptr<ServicesDelegate> services_delegate_; | 229 std::unique_ptr<ServicesDelegate> services_delegate_; |
| 230 | 230 |
| 231 private: | 231 private: |
| 232 friend class SafeBrowsingServiceFactoryImpl; | 232 friend class SafeBrowsingServiceFactoryImpl; |
| 233 friend struct content::BrowserThread::DeleteOnThread< | 233 friend struct content::BrowserThread::DeleteOnThread< |
| 234 content::BrowserThread::UI>; | 234 content::BrowserThread::UI>; |
| 235 friend class base::DeleteHelper<SafeBrowsingService>; | 235 friend class base::DeleteHelper<SafeBrowsingService>; |
| 236 friend class SafeBrowsingBlockingPageTest; | 236 friend class SafeBrowsingBlockingPageTest; |
| 237 friend class SafeBrowsingBlockingQuietPageTest; |
| 237 friend class SafeBrowsingServerTest; | 238 friend class SafeBrowsingServerTest; |
| 238 friend class SafeBrowsingServiceTest; | 239 friend class SafeBrowsingServiceTest; |
| 239 friend class SafeBrowsingURLRequestContextGetter; | 240 friend class SafeBrowsingURLRequestContextGetter; |
| 240 friend class TestSafeBrowsingService; | 241 friend class TestSafeBrowsingService; |
| 241 friend class TestSafeBrowsingServiceFactory; | 242 friend class TestSafeBrowsingServiceFactory; |
| 242 | 243 |
| 243 // Called to initialize objects that are used on the io_thread. This may be | 244 // Called to initialize objects that are used on the io_thread. This may be |
| 244 // called multiple times during the life of the SafeBrowsingService. | 245 // called multiple times during the life of the SafeBrowsingService. |
| 245 void StartOnIOThread( | 246 void StartOnIOThread( |
| 246 net::URLRequestContextGetter* url_request_context_getter); | 247 net::URLRequestContextGetter* url_request_context_getter); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 SafeBrowsingServiceFactory() { } | 374 SafeBrowsingServiceFactory() { } |
| 374 virtual ~SafeBrowsingServiceFactory() { } | 375 virtual ~SafeBrowsingServiceFactory() { } |
| 375 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 376 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
| 376 private: | 377 private: |
| 377 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 378 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
| 378 }; | 379 }; |
| 379 | 380 |
| 380 } // namespace safe_browsing | 381 } // namespace safe_browsing |
| 381 | 382 |
| 382 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 383 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |