| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 // The DownloadProtectionService is not valid after the SafeBrowsingService | 119 // The DownloadProtectionService is not valid after the SafeBrowsingService |
| 120 // is destroyed. | 120 // is destroyed. |
| 121 DownloadProtectionService* download_protection_service() const { | 121 DownloadProtectionService* download_protection_service() const { |
| 122 return services_delegate_->GetDownloadService(); | 122 return services_delegate_->GetDownloadService(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 scoped_refptr<net::URLRequestContextGetter> url_request_context(); | 125 scoped_refptr<net::URLRequestContextGetter> url_request_context(); |
| 126 | 126 |
| 127 // Called on IO thread thread when QUIC should be disabled (e.g. because of |
| 128 // policy). This should not be necessary anymore when http://crbug.com/678653 |
| 129 // is implemented. |
| 130 void DisableQuicOnIOThread(); |
| 131 |
| 127 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; | 132 const scoped_refptr<SafeBrowsingUIManager>& ui_manager() const; |
| 128 | 133 |
| 129 // This returns either the v3 or the v4 database manager, depending on | 134 // This returns either the v3 or the v4 database manager, depending on |
| 130 // the experiment settings. | 135 // the experiment settings. |
| 131 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; | 136 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager() const; |
| 132 | 137 |
| 133 scoped_refptr<SafeBrowsingNavigationObserverManager> | 138 scoped_refptr<SafeBrowsingNavigationObserverManager> |
| 134 navigation_observer_manager(); | 139 navigation_observer_manager(); |
| 135 | 140 |
| 136 SafeBrowsingProtocolManager* protocol_manager() const; | 141 SafeBrowsingProtocolManager* protocol_manager() const; |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 SafeBrowsingServiceFactory() { } | 324 SafeBrowsingServiceFactory() { } |
| 320 virtual ~SafeBrowsingServiceFactory() { } | 325 virtual ~SafeBrowsingServiceFactory() { } |
| 321 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; | 326 virtual SafeBrowsingService* CreateSafeBrowsingService() = 0; |
| 322 private: | 327 private: |
| 323 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); | 328 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingServiceFactory); |
| 324 }; | 329 }; |
| 325 | 330 |
| 326 } // namespace safe_browsing | 331 } // namespace safe_browsing |
| 327 | 332 |
| 328 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ | 333 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_SERVICE_H_ |
| OLD | NEW |