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

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

Issue 1970823002: Remove the unused OffDomainInclusionDetector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 7 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // These will fail with DCHECK() since their functionality isn't implemented. 54 // These will fail with DCHECK() since their functionality isn't implemented.
55 // We may later add support for a subset of them. 55 // We may later add support for a subset of them.
56 bool CheckDownloadUrl(const std::vector<GURL>& url_chain, 56 bool CheckDownloadUrl(const std::vector<GURL>& url_chain,
57 Client* client) override; 57 Client* client) override;
58 bool CheckExtensionIDs(const std::set<std::string>& extension_ids, 58 bool CheckExtensionIDs(const std::set<std::string>& extension_ids,
59 Client* client) override; 59 Client* client) override;
60 bool MatchCsdWhitelistUrl(const GURL& url) override; 60 bool MatchCsdWhitelistUrl(const GURL& url) override;
61 bool MatchMalwareIP(const std::string& ip_address) override; 61 bool MatchMalwareIP(const std::string& ip_address) override;
62 bool MatchDownloadWhitelistUrl(const GURL& url) override; 62 bool MatchDownloadWhitelistUrl(const GURL& url) override;
63 bool MatchDownloadWhitelistString(const std::string& str) override; 63 bool MatchDownloadWhitelistString(const std::string& str) override;
64 bool MatchInclusionWhitelistUrl(const GURL& url) override;
65 bool MatchModuleWhitelistString(const std::string& str) override; 64 bool MatchModuleWhitelistString(const std::string& str) override;
66 bool CheckResourceUrl(const GURL& url, Client* client) override; 65 bool CheckResourceUrl(const GURL& url, Client* client) override;
67 bool IsMalwareKillSwitchOn() override; 66 bool IsMalwareKillSwitchOn() override;
68 bool IsCsdWhitelistKillSwitchOn() override; 67 bool IsCsdWhitelistKillSwitchOn() override;
69 68
70 // 69 //
71 // RemoteSafeBrowsingDatabaseManager implementation 70 // RemoteSafeBrowsingDatabaseManager implementation
72 // 71 //
73 72
74 private: 73 private:
75 ~RemoteSafeBrowsingDatabaseManager() override; 74 ~RemoteSafeBrowsingDatabaseManager() override;
76 class ClientRequest; // Per-request tracker. 75 class ClientRequest; // Per-request tracker.
77 76
78 // Requests currently outstanding. This owns the ptrs. 77 // Requests currently outstanding. This owns the ptrs.
79 std::vector<ClientRequest*> current_requests_; 78 std::vector<ClientRequest*> current_requests_;
80 bool enabled_; 79 bool enabled_;
81 80
82 std::set<content::ResourceType> resource_types_to_check_; 81 std::set<content::ResourceType> resource_types_to_check_;
83 82
84 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; 83 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>;
85 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); 84 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager);
86 }; // class RemoteSafeBrowsingDatabaseManager 85 }; // class RemoteSafeBrowsingDatabaseManager
87 86
88 } // namespace safe_browsing 87 } // namespace safe_browsing
89 88
90 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 89 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/database_manager.h ('k') | components/safe_browsing_db/remote_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698