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

Side by Side Diff: components/safe_browsing_db/v4_database.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/safe_browsing_db/v4_database.h"
6
7 namespace safe_browsing {
8
9 // static
10 // Factory method, should be called on the Safe Browsing sequenced task runner,
11 // which is also passed to the function as |db_task_runner|.
12 V4Database* V4Database::Create(
13 V4DatabaseFactory* factory,
14 const scoped_refptr<base::SequencedTaskRunner>& db_task_runner,
15 bool enable_malware_list,
16 bool enable_phishing_list,
17 bool enable_unwanted_software_list) {
18 DCHECK(factory);
19 DCHECK(db_task_runner->RunsTasksOnCurrentThread());
20 if (factory) {
21 return factory->CreateV4Database(
22 db_task_runner,
23 enable_malware_list,
24 enable_phishing_list,
25 enable_unwanted_software_list);
26 } else {
27 return nullptr;
28 }
29 }
30
31 V4Database::~V4Database() {}
32
33 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698