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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_store.h

Issue 1399843003: Move prefix_set and parts of s_b_util into a new component safe_browsing_db. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use group instead of a static_library for targets that have no sources. Created 5 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/browser/safe_browsing/prefix_set.h"
17 #include "chrome/browser/safe_browsing/safe_browsing_util.h" 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h"
18 17
18 namespace safe_browsing {
19 class PrefixSetBuilder;
20 };
21
19 namespace base { 22 namespace base {
20 class FilePath; 23 class FilePath;
21 } 24 }
22 25
23 // SafeBrowsingStore provides a storage abstraction for the 26 // SafeBrowsingStore provides a storage abstraction for the
24 // safe-browsing data used to build the bloom filter. The items 27 // safe-browsing data used to build the bloom filter. The items
25 // stored are: 28 // stored are:
26 // The set of add and sub chunks seen. 29 // The set of add and sub chunks seen.
27 // List of SBAddPrefix (chunk_id and SBPrefix). 30 // List of SBAddPrefix (chunk_id and SBPrefix).
28 // List of SBSubPrefix (chunk_id and the target SBAddPrefix). 31 // List of SBSubPrefix (chunk_id and the target SBAddPrefix).
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 223
221 // Cancel the update in process and remove any temporary disk 224 // Cancel the update in process and remove any temporary disk
222 // storage, leaving the original data unmodified. 225 // storage, leaving the original data unmodified.
223 virtual bool CancelUpdate() = 0; 226 virtual bool CancelUpdate() = 0;
224 227
225 private: 228 private:
226 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingStore); 229 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingStore);
227 }; 230 };
228 231
229 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_ 232 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database.cc ('k') | chrome/browser/safe_browsing/safe_browsing_store_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698