summaryrefslogtreecommitdiffstats
path: root/components/safe_browsing_db/remote_database_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/safe_browsing_db/remote_database_manager.h')
-rw-r--r--components/safe_browsing_db/remote_database_manager.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/components/safe_browsing_db/remote_database_manager.h b/components/safe_browsing_db/remote_database_manager.h
index 6b2c764..143902c 100644
--- a/components/safe_browsing_db/remote_database_manager.h
+++ b/components/safe_browsing_db/remote_database_manager.h
@@ -18,15 +18,26 @@
#include "components/safe_browsing_db/database_manager.h"
#include "url/gurl.h"
+namespace net {
+class URLRequestContextGetter;
+}
+
namespace safe_browsing {
+struct V4GetHashProtocolConfig;
+
// An implementation that proxies requests to a service outside of Chromium.
// Does not manage a local database.
class RemoteSafeBrowsingDatabaseManager : public SafeBrowsingDatabaseManager {
public:
+ // Use this constructor for testing only.
+ RemoteSafeBrowsingDatabaseManager();
+
// Construct RemoteSafeBrowsingDatabaseManager.
// Must be initialized by calling StartOnIOThread() before using.
- RemoteSafeBrowsingDatabaseManager();
+ RemoteSafeBrowsingDatabaseManager(
+ net::URLRequestContextGetter* request_context_getter,
+ const V4GetHashProtocolConfig& config);
//
// SafeBrowsingDatabaseManager implementation