| 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 #ifndef COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ |
| 6 #define COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 bool CheckBrowseUrl(const GURL& url, Client* client) override; | 29 bool CheckBrowseUrl(const GURL& url, Client* client) override; |
| 30 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, | 30 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, |
| 31 Client* client) override; | 31 Client* client) override; |
| 32 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, | 32 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, |
| 33 Client* client) override; | 33 Client* client) override; |
| 34 bool MatchCsdWhitelistUrl(const GURL& url) override; | 34 bool MatchCsdWhitelistUrl(const GURL& url) override; |
| 35 bool MatchMalwareIP(const std::string& ip_address) override; | 35 bool MatchMalwareIP(const std::string& ip_address) override; |
| 36 bool MatchDownloadWhitelistUrl(const GURL& url) override; | 36 bool MatchDownloadWhitelistUrl(const GURL& url) override; |
| 37 bool MatchDownloadWhitelistString(const std::string& str) override; | 37 bool MatchDownloadWhitelistString(const std::string& str) override; |
| 38 bool MatchInclusionWhitelistUrl(const GURL& url) override; | 38 bool MatchInclusionWhitelistUrl(const GURL& url) override; |
| 39 bool MatchModuleWhitelistString(const std::string& str) override; |
| 39 bool IsMalwareKillSwitchOn() override; | 40 bool IsMalwareKillSwitchOn() override; |
| 40 bool IsCsdWhitelistKillSwitchOn() override; | 41 bool IsCsdWhitelistKillSwitchOn() override; |
| 41 void CancelCheck(Client* client) override; | 42 void CancelCheck(Client* client) override; |
| 42 void CheckApiBlacklistUrl(const GURL& url, Client* client) override; | 43 void CheckApiBlacklistUrl(const GURL& url, Client* client) override; |
| 43 void StartOnIOThread() override; | 44 void StartOnIOThread() override; |
| 44 void StopOnIOThread(bool shutdown) override; | 45 void StopOnIOThread(bool shutdown) override; |
| 45 | 46 |
| 46 protected: | 47 protected: |
| 47 ~TestSafeBrowsingDatabaseManager() override {}; | 48 ~TestSafeBrowsingDatabaseManager() override {}; |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace safe_browsing | 51 } // namespace safe_browsing |
| 51 | 52 |
| 52 #endif // COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ | 53 #endif // COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ |
| OLD | NEW |