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

Unified Diff: components/safe_browsing_db/database_manager.h

Issue 1881353002: SafeBrowsing: Adds response handler for API blacklist check in Database Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@osb-impl-1
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/database_manager.h
diff --git a/components/safe_browsing_db/database_manager.h b/components/safe_browsing_db/database_manager.h
index 129307e5d50150e29af09ca3614802061af22ce6..c2359f67b4b8c865d1a40f0af8930c3022ebfd4b 100644
--- a/components/safe_browsing_db/database_manager.h
+++ b/components/safe_browsing_db/database_manager.h
@@ -73,6 +73,10 @@ class SafeBrowsingDatabaseManager
Client* client);
~SafeBrowsingApiCheck();
+ const GURL& url() {return url_;}
+ std::vector<SBFullHash>& full_hashes() {return full_hashes_;}
+ SafeBrowsingDatabaseManager::Client* client() {return client_;}
+
private:
GURL url_;
std::vector<SBFullHash> full_hashes_;
@@ -208,6 +212,12 @@ class SafeBrowsingDatabaseManager
FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseManagerTest,
CheckApiBlacklistUrlPrefixes);
+ FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseManagerTest,
+ HandleGetHashesWithApisResults);
+ FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseManagerTest,
+ HandleGetHashesWithApisResultsNoMatch);
+ FRIEND_TEST_ALL_PREFIXES(SafeBrowsingDatabaseManagerTest,
+ HandleGetHashesWithApisResultsMatches);
// Created and destroyed via StartOnIOThread/StopOnIOThread.
V4GetHashProtocolManager* v4_get_hash_protocol_manager_;
« no previous file with comments | « no previous file | components/safe_browsing_db/database_manager.cc » ('j') | components/safe_browsing_db/database_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698