OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ |
6 #define COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ |
7 | 7 |
| 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/sequenced_task_runner.h" |
| 11 |
8 namespace safe_browsing { | 12 namespace safe_browsing { |
9 | 13 |
10 class V4Store { | 14 class V4Store { |
| 15 public: |
| 16 V4Store(const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
| 17 const base::FilePath& store_path); |
| 18 virtual ~V4Store(); |
| 19 |
| 20 // Reset internal state and delete the backing file. |
| 21 virtual bool Reset(); |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(V4Store); |
11 }; | 25 }; |
12 | 26 |
13 } // namespace safe_browsing | 27 } // namespace safe_browsing |
14 | 28 |
15 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ | 29 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ |
OLD | NEW |