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

Unified Diff: chrome/browser/safe_browsing/local_database_manager.h

Issue 1700943003: SafeBrowsing: DatabaseManager owns the V4GetHashProtocolManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass NULL for the url_context_getter 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/local_database_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/local_database_manager.h
diff --git a/chrome/browser/safe_browsing/local_database_manager.h b/chrome/browser/safe_browsing/local_database_manager.h
index fd9712ba935e37c89ad8d05d0b901034906ce964..dfadcfdcef5a793809b9adbbb7225ee801c62675 100644
--- a/chrome/browser/safe_browsing/local_database_manager.h
+++ b/chrome/browser/safe_browsing/local_database_manager.h
@@ -41,6 +41,7 @@ class SafeBrowsingService;
class SafeBrowsingDatabase;
class ClientSideDetectionService;
class DownloadProtectionService;
+struct V4GetHashProtocolConfig;
// Implemetation that manages a local database on disk.
//
@@ -96,10 +97,16 @@ class LocalSafeBrowsingDatabaseManager
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingCheck);
};
- // Creates the safe browsing service. Need to initialize before using.
+ // Use this constructor for testing only.
explicit LocalSafeBrowsingDatabaseManager(
const scoped_refptr<SafeBrowsingService>& service);
+ // Creates the safe browsing service. Need to initialize before using.
+ LocalSafeBrowsingDatabaseManager(
+ const scoped_refptr<SafeBrowsingService>& service,
+ net::URLRequestContextGetter* request_context_getter,
+ const V4GetHashProtocolConfig& config);
+
//
// SafeBrowsingDatabaseManager overrides
//
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698