| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Implementation of the SafeBrowsingDatabaseManager that sends URLs | 5 // Implementation of the SafeBrowsingDatabaseManager that sends URLs |
| 6 // via IPC to a database that chromium doesn't manage locally. | 6 // via IPC to a database that chromium doesn't manage locally. |
| 7 | 7 |
| 8 #ifndef COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ | 8 #ifndef COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ |
| 9 #define COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ | 9 #define COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 void CancelCheck(Client* client) override; | 42 void CancelCheck(Client* client) override; |
| 43 bool CanCheckResourceType(content::ResourceType resource_type) const override; | 43 bool CanCheckResourceType(content::ResourceType resource_type) const override; |
| 44 bool CanCheckUrl(const GURL& url) const override; | 44 bool CanCheckUrl(const GURL& url) const override; |
| 45 bool ChecksAreAlwaysAsync() const override; | 45 bool ChecksAreAlwaysAsync() const override; |
| 46 bool CheckBrowseUrl(const GURL& url, Client* client) override; | 46 bool CheckBrowseUrl(const GURL& url, Client* client) override; |
| 47 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, | 47 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, |
| 48 Client* client) override; | 48 Client* client) override; |
| 49 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, | 49 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, |
| 50 Client* client) override; | 50 Client* client) override; |
| 51 AsyncMatch CheckCsdWhitelistUrl(const GURL& url, Client* client) override; |
| 51 bool CheckResourceUrl(const GURL& url, Client* client) override; | 52 bool CheckResourceUrl(const GURL& url, Client* client) override; |
| 52 bool CheckUrlForSubresourceFilter(const GURL& url, Client* client) override; | 53 bool CheckUrlForSubresourceFilter(const GURL& url, Client* client) override; |
| 53 bool MatchCsdWhitelistUrl(const GURL& url) override; | 54 bool MatchCsdWhitelistUrl(const GURL& url) override; |
| 54 bool MatchDownloadWhitelistString(const std::string& str) override; | 55 bool MatchDownloadWhitelistString(const std::string& str) override; |
| 55 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 56 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
| 56 bool MatchMalwareIP(const std::string& ip_address) override; | 57 bool MatchMalwareIP(const std::string& ip_address) override; |
| 57 bool MatchModuleWhitelistString(const std::string& str) override; | 58 bool MatchModuleWhitelistString(const std::string& str) override; |
| 58 safe_browsing::ThreatSource GetThreatSource() const override; | 59 safe_browsing::ThreatSource GetThreatSource() const override; |
| 59 bool IsCsdWhitelistKillSwitchOn() override; | 60 bool IsCsdWhitelistKillSwitchOn() override; |
| 60 bool IsDownloadProtectionEnabled() const override; | 61 bool IsDownloadProtectionEnabled() const override; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 77 | 78 |
| 78 base::flat_set<content::ResourceType> resource_types_to_check_; | 79 base::flat_set<content::ResourceType> resource_types_to_check_; |
| 79 | 80 |
| 80 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; | 81 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; |
| 81 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); | 82 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); |
| 82 }; // class RemoteSafeBrowsingDatabaseManager | 83 }; // class RemoteSafeBrowsingDatabaseManager |
| 83 | 84 |
| 84 } // namespace safe_browsing | 85 } // namespace safe_browsing |
| 85 | 86 |
| 86 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ | 87 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ |
| OLD | NEW |