| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 7 | 7 |
| 8 // A class that provides the interface between the SafeBrowsing protocol manager | 8 // A class that provides the interface between the SafeBrowsing protocol manager |
| 9 // and database that holds the downloaded updates. | 9 // and database that holds the downloaded updates. |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const V4ProtocolConfig& config) override; | 46 const V4ProtocolConfig& config) override; |
| 47 void StopOnIOThread(bool shutdown) override; | 47 void StopOnIOThread(bool shutdown) override; |
| 48 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, | 48 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, |
| 49 Client* client) override; | 49 Client* client) override; |
| 50 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, | 50 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, |
| 51 Client* client) override; | 51 Client* client) override; |
| 52 bool MatchCsdWhitelistUrl(const GURL& url) override; | 52 bool MatchCsdWhitelistUrl(const GURL& url) override; |
| 53 bool MatchMalwareIP(const std::string& ip_address) override; | 53 bool MatchMalwareIP(const std::string& ip_address) override; |
| 54 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 54 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
| 55 bool MatchDownloadWhitelistString(const std::string& str) override; | 55 bool MatchDownloadWhitelistString(const std::string& str) override; |
| 56 bool MatchInclusionWhitelistUrl(const GURL& url) override; | |
| 57 bool MatchModuleWhitelistString(const std::string& str) override; | 56 bool MatchModuleWhitelistString(const std::string& str) override; |
| 58 bool CheckResourceUrl(const GURL& url, Client* client) override; | 57 bool CheckResourceUrl(const GURL& url, Client* client) override; |
| 59 bool IsMalwareKillSwitchOn() override; | 58 bool IsMalwareKillSwitchOn() override; |
| 60 bool IsCsdWhitelistKillSwitchOn() override; | 59 bool IsCsdWhitelistKillSwitchOn() override; |
| 61 | 60 |
| 62 private: | 61 private: |
| 63 ~V4LocalDatabaseManager() override; | 62 ~V4LocalDatabaseManager() override; |
| 64 | 63 |
| 65 // The callback called each time the protocol manager downloads updates | 64 // The callback called each time the protocol manager downloads updates |
| 66 // successfully. | 65 // successfully. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 80 // The database that manages the stores containing the hash prefix updates. | 79 // The database that manages the stores containing the hash prefix updates. |
| 81 std::unique_ptr<V4Database> v4_database_; | 80 std::unique_ptr<V4Database> v4_database_; |
| 82 | 81 |
| 83 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; | 82 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; |
| 84 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); | 83 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); |
| 85 }; // class V4LocalDatabaseManager | 84 }; // class V4LocalDatabaseManager |
| 86 | 85 |
| 87 } // namespace safe_browsing | 86 } // namespace safe_browsing |
| 88 | 87 |
| 89 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 88 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| OLD | NEW |