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

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

Issue 2890293004: Add the ability to check the CSD Whitelist asynchronously, for PhishGuard. (Closed)
Patch Set: Respond to vakhs review, fix up tests Created 3 years, 6 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 // 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698