Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: components/safe_browsing_db/test_database_manager.h

Issue 1865763002: Rename download_protection_enabled to IsDownloadProtectionEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 // called, and it'll complain if you call one that isn't overriden. 24 // called, and it'll complain if you call one that isn't overriden.
25 class TestSafeBrowsingDatabaseManager 25 class TestSafeBrowsingDatabaseManager
26 : public SafeBrowsingDatabaseManager { 26 : public SafeBrowsingDatabaseManager {
27 public: 27 public:
28 // SafeBrowsingDatabaseManager implementation: 28 // SafeBrowsingDatabaseManager implementation:
29 bool IsSupported() const override; 29 bool IsSupported() const override;
30 safe_browsing::ThreatSource GetThreatSource() const override; 30 safe_browsing::ThreatSource GetThreatSource() const override;
31 bool ChecksAreAlwaysAsync() const override; 31 bool ChecksAreAlwaysAsync() const override;
32 bool CanCheckResourceType(content::ResourceType resource_type) const override; 32 bool CanCheckResourceType(content::ResourceType resource_type) const override;
33 bool CanCheckUrl(const GURL& url) const override; 33 bool CanCheckUrl(const GURL& url) const override;
34 bool download_protection_enabled() const override; 34 bool IsDownloadProtectionEnabled() const override;
35 bool CheckBrowseUrl(const GURL& url, Client* client) override; 35 bool CheckBrowseUrl(const GURL& url, Client* client) override;
36 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, 36 bool CheckDownloadUrl(const std::vector<GURL>& url_chain,
37 Client* client) override; 37 Client* client) override;
38 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, 38 bool CheckExtensionIDs(const std::set<std::string>& extension_ids,
39 Client* client) override; 39 Client* client) override;
40 bool CheckResourceUrl(const GURL& url, Client* client) override; 40 bool CheckResourceUrl(const GURL& url, Client* client) override;
41 bool MatchCsdWhitelistUrl(const GURL& url) override; 41 bool MatchCsdWhitelistUrl(const GURL& url) override;
42 bool MatchMalwareIP(const std::string& ip_address) override; 42 bool MatchMalwareIP(const std::string& ip_address) override;
43 bool MatchDownloadWhitelistUrl(const GURL& url) override; 43 bool MatchDownloadWhitelistUrl(const GURL& url) override;
44 bool MatchDownloadWhitelistString(const std::string& str) override; 44 bool MatchDownloadWhitelistString(const std::string& str) override;
45 bool MatchInclusionWhitelistUrl(const GURL& url) override; 45 bool MatchInclusionWhitelistUrl(const GURL& url) override;
46 bool MatchModuleWhitelistString(const std::string& str) override; 46 bool MatchModuleWhitelistString(const std::string& str) override;
47 bool IsMalwareKillSwitchOn() override; 47 bool IsMalwareKillSwitchOn() override;
48 bool IsCsdWhitelistKillSwitchOn() override; 48 bool IsCsdWhitelistKillSwitchOn() override;
49 void CancelCheck(Client* client) override; 49 void CancelCheck(Client* client) override;
50 void CheckApiBlacklistUrl(const GURL& url, Client* client) override; 50 void CheckApiBlacklistUrl(const GURL& url, Client* client) override;
51 void StartOnIOThread( 51 void StartOnIOThread(
52 net::URLRequestContextGetter* request_context_getter, 52 net::URLRequestContextGetter* request_context_getter,
53 const V4ProtocolConfig& config) override; 53 const V4ProtocolConfig& config) override;
54 void StopOnIOThread(bool shutdown) override; 54 void StopOnIOThread(bool shutdown) override;
55 55
56 protected: 56 protected:
57 ~TestSafeBrowsingDatabaseManager() override {}; 57 ~TestSafeBrowsingDatabaseManager() override {};
58 }; 58 };
59 59
60 } // namespace safe_browsing 60 } // namespace safe_browsing
61 61
62 #endif // COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_ 62 #endif // COMPONENTS_SAFE_BROWSING_DB_TEST_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/remote_database_manager.cc ('k') | components/safe_browsing_db/test_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698