| OLD | NEW |
| (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 |
| OLD | NEW |