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

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

Issue 1638223003: Add support for a module whitelist (goog-whitemodule-digest256) to the safe browsing db (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser test Created 4 years, 10 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // We may later add support for a subset of them. 47 // We may later add support for a subset of them.
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; 56 bool MatchInclusionWhitelistUrl(const GURL& url) override;
57 bool MatchModuleWhitelistString(const std::string& str) override;
57 bool IsMalwareKillSwitchOn() override; 58 bool IsMalwareKillSwitchOn() override;
58 bool IsCsdWhitelistKillSwitchOn() override; 59 bool IsCsdWhitelistKillSwitchOn() override;
59 60
60 // 61 //
61 // RemoteSafeBrowsingDatabaseManager implementation 62 // RemoteSafeBrowsingDatabaseManager implementation
62 // 63 //
63 64
64 private: 65 private:
65 ~RemoteSafeBrowsingDatabaseManager() override; 66 ~RemoteSafeBrowsingDatabaseManager() override;
66 class ClientRequest; // Per-request tracker. 67 class ClientRequest; // Per-request tracker.
67 68
68 // Requests currently outstanding. This owns the ptrs. 69 // Requests currently outstanding. This owns the ptrs.
69 std::vector<ClientRequest*> current_requests_; 70 std::vector<ClientRequest*> current_requests_;
70 bool enabled_; 71 bool enabled_;
71 72
72 std::set<content::ResourceType> resource_types_to_check_; 73 std::set<content::ResourceType> resource_types_to_check_;
73 74
74 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>; 75 friend class base::RefCountedThreadSafe<RemoteSafeBrowsingDatabaseManager>;
75 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager); 76 DISALLOW_COPY_AND_ASSIGN(RemoteSafeBrowsingDatabaseManager);
76 }; // class RemoteSafeBrowsingDatabaseManager 77 }; // class RemoteSafeBrowsingDatabaseManager
77 78
78 } // namespace safe_browsing 79 } // namespace safe_browsing
79 80
80 #endif // COMPONENTS_SAFE_BROWSING_DB_REMOTE_DATABASE_MANAGER_H_ 81 #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