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

Side by Side Diff: components/safe_browsing_db/v4_store.h

Issue 1954393002: Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_db_realz
Patch Set: CR feedback 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
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 // 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);
11 }; 28 };
12 29
13 } // namespace safe_browsing 30 } // namespace safe_browsing
14 31
15 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_ 32 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698