| 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 | |
| 12 namespace safe_browsing { | 8 namespace safe_browsing { |
| 13 | 9 |
| 14 class V4Store { | 10 class V4Store { |
| 15 public: | |
| 16 // The |task_runner| is used to ensure that the operations in this file are | |
| 17 // performed on the correct thread. |store_path| specifies the location on | |
| 18 // disk for this file. | |
| 19 V4Store(const scoped_refptr<base::SequencedTaskRunner>& task_runner, | |
| 20 const base::FilePath& store_path); | |
| 21 virtual ~V4Store(); | |
| 22 | |
| 23 // Reset internal state and delete the backing file. | |
| 24 virtual bool Reset(); | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(V4Store); | |
| 28 }; | 11 }; |
| 29 | 12 |
| 30 } // namespace safe_browsing | 13 } // namespace safe_browsing |
| 31 | 14 |
| 32 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ | 15 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ |
| OLD | NEW |