| 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 // Safe Browsing Database Manager implementation that manages a local | 5 // Safe Browsing Database Manager implementation that manages a local |
| 6 // database. This is used by Desktop Chromium. | 6 // database. This is used by Desktop Chromium. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
| 9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 9 #define CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 128 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
| 129 bool MatchDownloadWhitelistString(const std::string& str) override; | 129 bool MatchDownloadWhitelistString(const std::string& str) override; |
| 130 bool MatchInclusionWhitelistUrl(const GURL& url) override; | 130 bool MatchInclusionWhitelistUrl(const GURL& url) override; |
| 131 bool MatchModuleWhitelistString(const std::string& str) override; | 131 bool MatchModuleWhitelistString(const std::string& str) override; |
| 132 bool IsMalwareKillSwitchOn() override; | 132 bool IsMalwareKillSwitchOn() override; |
| 133 bool IsCsdWhitelistKillSwitchOn() override; | 133 bool IsCsdWhitelistKillSwitchOn() override; |
| 134 void CancelCheck(Client* client) override; | 134 void CancelCheck(Client* client) override; |
| 135 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, | 135 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, |
| 136 const V4ProtocolConfig& config) override; | 136 const V4ProtocolConfig& config) override; |
| 137 void StopOnIOThread(bool shutdown) override; | 137 void StopOnIOThread(bool shutdown) override; |
| 138 bool download_protection_enabled() const override; | 138 bool IsDownloadProtectionEnabled() const override; |
| 139 | 139 |
| 140 protected: | 140 protected: |
| 141 ~LocalSafeBrowsingDatabaseManager() override; | 141 ~LocalSafeBrowsingDatabaseManager() override; |
| 142 | 142 |
| 143 // protected for tests. | 143 // protected for tests. |
| 144 void NotifyDatabaseUpdateFinished(bool update_succeeded); | 144 void NotifyDatabaseUpdateFinished(bool update_succeeded); |
| 145 | 145 |
| 146 private: | 146 private: |
| 147 // Called on the IO thread when the SafeBrowsingProtocolManager has received | 147 // Called on the IO thread when the SafeBrowsingProtocolManager has received |
| 148 // the full hash results for prefix hits detected in the database. | 148 // the full hash results for prefix hits detected in the database. |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 // Timeout to use for safe browsing checks. | 379 // Timeout to use for safe browsing checks. |
| 380 base::TimeDelta check_timeout_; | 380 base::TimeDelta check_timeout_; |
| 381 | 381 |
| 382 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 382 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
| 383 }; // class LocalSafeBrowsingDatabaseManager | 383 }; // class LocalSafeBrowsingDatabaseManager |
| 384 | 384 |
| 385 } // namespace safe_browsing | 385 } // namespace safe_browsing |
| 386 | 386 |
| 387 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 387 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
| OLD | NEW |