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