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

Unified Diff: components/safe_browsing_db/v4_database_impl.cc

Issue 1952843003: Skeleton of the overall design for the database for Pver4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing_db/v4_database_impl.cc
diff --git a/components/safe_browsing_db/v4_database_impl.cc b/components/safe_browsing_db/v4_database_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..198d9738777a35cefa55cee62d75c79a6275794e
--- /dev/null
+++ b/components/safe_browsing_db/v4_database_impl.cc
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/safe_browsing_db/v4_database_impl.h"
+
+#include "components/safe_browsing_db/v4_protocol_manager_util.h"
+#include "components/safe_browsing_db/v4_store.h"
+
+namespace safe_browsing {
+
+class V4DatabaseImpl;
+
+// The default V4DatabaseFactory.
+class V4DatabaseFactoryImpl : public V4DatabaseFactory {
Nathan Parker 2016/05/05 18:26:44 I think you could do without a default factory, by
vakh (use Gerrit instead) 2016/05/06 00:23:15 Done.
+ public:
+ V4Database* CreateV4Database(
+ const scoped_refptr<base::SequencedTaskRunner>& db_task_runner,
+ bool enable_malware_list,
+ bool enable_phishing_list,
+ bool enable_unwanted_software_list) override {
+ StoreMap store_map;
+ return new V4DatabaseImpl(db_task_runner, std::move(store_map));
+ }
+
+ V4DatabaseFactoryImpl() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(V4DatabaseFactoryImpl);
+};
+
+
+
+} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698