| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool CheckBrowseUrl(const GURL& url, Client* client) override; | 120 bool CheckBrowseUrl(const GURL& url, Client* client) override; |
| 121 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, | 121 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, |
| 122 Client* client) override; | 122 Client* client) override; |
| 123 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, | 123 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, |
| 124 Client* client) override; | 124 Client* client) override; |
| 125 bool CheckResourceUrl(const GURL& url, Client* client) override; | 125 bool CheckResourceUrl(const GURL& url, Client* client) override; |
| 126 bool MatchCsdWhitelistUrl(const GURL& url) override; | 126 bool MatchCsdWhitelistUrl(const GURL& url) override; |
| 127 bool MatchMalwareIP(const std::string& ip_address) override; | 127 bool MatchMalwareIP(const std::string& ip_address) override; |
| 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; | |
| 131 bool MatchModuleWhitelistString(const std::string& str) override; | 130 bool MatchModuleWhitelistString(const std::string& str) override; |
| 132 bool IsMalwareKillSwitchOn() override; | 131 bool IsMalwareKillSwitchOn() override; |
| 133 bool IsCsdWhitelistKillSwitchOn() override; | 132 bool IsCsdWhitelistKillSwitchOn() override; |
| 134 void CancelCheck(Client* client) override; | 133 void CancelCheck(Client* client) override; |
| 135 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, | 134 void StartOnIOThread(net::URLRequestContextGetter* request_context_getter, |
| 136 const V4ProtocolConfig& config) override; | 135 const V4ProtocolConfig& config) override; |
| 137 void StopOnIOThread(bool shutdown) override; | 136 void StopOnIOThread(bool shutdown) override; |
| 138 bool IsDownloadProtectionEnabled() const override; | 137 bool IsDownloadProtectionEnabled() const override; |
| 139 | 138 |
| 140 protected: | 139 protected: |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 378 |
| 380 // Timeout to use for safe browsing checks. | 379 // Timeout to use for safe browsing checks. |
| 381 base::TimeDelta check_timeout_; | 380 base::TimeDelta check_timeout_; |
| 382 | 381 |
| 383 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); | 382 DISALLOW_COPY_AND_ASSIGN(LocalSafeBrowsingDatabaseManager); |
| 384 }; // class LocalSafeBrowsingDatabaseManager | 383 }; // class LocalSafeBrowsingDatabaseManager |
| 385 | 384 |
| 386 } // namespace safe_browsing | 385 } // namespace safe_browsing |
| 387 | 386 |
| 388 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ | 387 #endif // CHROME_BROWSER_SAFE_BROWSING_LOCAL_DATABASE_MANAGER_H_ |
| OLD | NEW |