| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 std::unique_ptr<ServicesDelegate> services_delegate_; | 183 std::unique_ptr<ServicesDelegate> services_delegate_; |
| 184 | 184 |
| 185 private: | 185 private: |
| 186 friend class SafeBrowsingServiceFactoryImpl; | 186 friend class SafeBrowsingServiceFactoryImpl; |
| 187 friend struct content::BrowserThread::DeleteOnThread< | 187 friend struct content::BrowserThread::DeleteOnThread< |
| 188 content::BrowserThread::UI>; | 188 content::BrowserThread::UI>; |
| 189 friend class base::DeleteHelper<SafeBrowsingService>; | 189 friend class base::DeleteHelper<SafeBrowsingService>; |
| 190 friend class SafeBrowsingServerTest; | 190 friend class SafeBrowsingServerTest; |
| 191 friend class SafeBrowsingServiceTest; | 191 friend class SafeBrowsingServiceTest; |
| 192 friend class SafeBrowsingURLRequestContextGetter; | 192 friend class SafeBrowsingURLRequestContextGetter; |
| 193 friend class TestSafeBrowsingService; |
| 194 friend class TestSafeBrowsingServiceFactory; |
| 193 | 195 |
| 194 // Called to initialize objects that are used on the io_thread. This may be | 196 // Called to initialize objects that are used on the io_thread. This may be |
| 195 // called multiple times during the life of the SafeBrowsingService. | 197 // called multiple times during the life of the SafeBrowsingService. |
| 196 void StartOnIOThread( | 198 void StartOnIOThread( |
| 197 net::URLRequestContextGetter* url_request_context_getter); | 199 net::URLRequestContextGetter* url_request_context_getter); |
| 198 | 200 |
| 199 // Called to stop or shutdown operations on the io_thread. This may be called | 201 // Called to stop or shutdown operations on the io_thread. This may be called |
| 200 // multiple times to stop during the life of the SafeBrowsingService. If | 202 // multiple times to stop during the life of the SafeBrowsingService. If |
| 201 // shutdown is true, then the operations on the io thread are shutdown | 203 // shutdown is true, then the operations on the io thread are shutdown |
| 202 // permanently and cannot be restarted. | 204 // permanently and cannot be restarted. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 SafeBrowsingServiceFactory() { } | 288 SafeBrowsingServiceFactory() { } |
| 287 virtual ~SafeBrowsingServiceFactory() { } | 289 virtual ~SafeBrowsingServiceFactory() { } |
| 288 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 290 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
| 289 private: | 291 private: |
| 290 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 292 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
| 291 }; | 293 }; |
| 292 | 294 |
| 293 } // namespace safe_browsing | 295 } // namespace safe_browsing |
| 294 | 296 |
| 295 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 297 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |