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