| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 // Clients that we've queued up for checking later once the database is ready. | 311 // Clients that we've queued up for checking later once the database is ready. |
| 312 struct QueuedCheck { | 312 struct QueuedCheck { |
| 313 Client* client; | 313 Client* client; |
| 314 GURL url; | 314 GURL url; |
| 315 base::TimeTicks start; // When check was queued. | 315 base::TimeTicks start; // When check was queued. |
| 316 }; | 316 }; |
| 317 | 317 |
| 318 friend struct content::BrowserThread::DeleteOnThread< | 318 friend struct content::BrowserThread::DeleteOnThread< |
| 319 content::BrowserThread::UI>; | 319 content::BrowserThread::UI>; |
| 320 friend class base::DeleteHelper<SafeBrowsingService>; | 320 friend class base::DeleteHelper<SafeBrowsingService>; |
| 321 friend class SafeBrowsingServerTest; |
| 321 friend class SafeBrowsingServiceTest; | 322 friend class SafeBrowsingServiceTest; |
| 322 friend class SafeBrowsingServiceCookieTest; | 323 friend class SafeBrowsingServiceCookieTest; |
| 323 friend class SafeBrowsingURLRequestContextGetter; | 324 friend class SafeBrowsingURLRequestContextGetter; |
| 324 | 325 |
| 325 void InitURLRequestContextOnIOThread( | 326 void InitURLRequestContextOnIOThread( |
| 326 net::URLRequestContextGetter* system_url_request_context_getter); | 327 net::URLRequestContextGetter* system_url_request_context_getter); |
| 327 | 328 |
| 328 void DestroyURLRequestContextOnIOThread(); | 329 void DestroyURLRequestContextOnIOThread(); |
| 329 | 330 |
| 330 // Called to initialize objects that are used on the io_thread. This may be | 331 // Called to initialize objects that are used on the io_thread. This may be |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 class SafeBrowsingServiceFactory { | 592 class SafeBrowsingServiceFactory { |
| 592 public: | 593 public: |
| 593 SafeBrowsingServiceFactory() { } | 594 SafeBrowsingServiceFactory() { } |
| 594 virtual ~SafeBrowsingServiceFactory() { } | 595 virtual ~SafeBrowsingServiceFactory() { } |
| 595 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 596 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
| 596 private: | 597 private: |
| 597 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 598 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
| 598 }; | 599 }; |
| 599 | 600 |
| 600 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 601 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |