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

Unified Diff: components/safe_browsing_db/v4_database.cc

Issue 1960893002: Revert of 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
« no previous file with comments | « components/safe_browsing_db/v4_database.h ('k') | components/safe_browsing_db/v4_local_database_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_database.cc
diff --git a/components/safe_browsing_db/v4_database.cc b/components/safe_browsing_db/v4_database.cc
deleted file mode 100644
index 328bedcaf652852b7ae5b41836c4567cb66f11e4..0000000000000000000000000000000000000000
--- a/components/safe_browsing_db/v4_database.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.h"
-
-namespace safe_browsing {
-
-// static
-V4DatabaseFactory* V4Database::factory_ = NULL;
-
-// static
-// Factory method, should be called on the Safe Browsing sequenced task runner,
-// which is also passed to the function as |db_task_runner|.
-V4Database* V4Database::Create(
- const scoped_refptr<base::SequencedTaskRunner>& db_task_runner,
- const base::FilePath& base_path,
- ListInfoMap list_info_map) {
- DCHECK(db_task_runner->RunsTasksOnCurrentThread());
- if (!factory_) {
- StoreMap store_map;
- // TODO(vakh): Populate the store_map using list_suffix_map.
- return new V4Database(db_task_runner, std::move(store_map));
- } else {
- return factory_->CreateV4Database(db_task_runner, base_path, list_info_map);
- }
-}
-
-V4Database::V4Database(
- const scoped_refptr<base::SequencedTaskRunner>& db_task_runner,
- StoreMap store_map) {
- // TODO(vakh): Implement skeleton
-}
-
-V4Database::~V4Database() {}
-
-bool V4Database::ResetDatabase() {
- // TODO(vakh): Delete the stores. Delete the backing files.
- return true;
-}
-
-} // namespace safe_browsing
« no previous file with comments | « components/safe_browsing_db/v4_database.h ('k') | components/safe_browsing_db/v4_local_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698