| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
| 14 #include "base/task.h" |
| 14 #include "base/time.h" | 15 #include "base/time.h" |
| 15 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
| 16 | 17 |
| 17 class FilePath; | 18 class FilePath; |
| 18 | 19 |
| 19 // SafeBrowsingStore provides a storage abstraction for the | 20 // SafeBrowsingStore provides a storage abstraction for the |
| 20 // safe-browsing data used to build the bloom filter. The items | 21 // safe-browsing data used to build the bloom filter. The items |
| 21 // stored are: | 22 // stored are: |
| 22 // The set of add and sub chunks seen. | 23 // The set of add and sub chunks seen. |
| 23 // List of SBAddPrefix (chunk_id and SBPrefix). | 24 // List of SBAddPrefix (chunk_id and SBPrefix). |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 220 |
| 220 // Cancel the update in process and remove any temporary disk | 221 // Cancel the update in process and remove any temporary disk |
| 221 // storage, leaving the original data unmodified. | 222 // storage, leaving the original data unmodified. |
| 222 virtual bool CancelUpdate() = 0; | 223 virtual bool CancelUpdate() = 0; |
| 223 | 224 |
| 224 private: | 225 private: |
| 225 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingStore); | 226 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingStore); |
| 226 }; | 227 }; |
| 227 | 228 |
| 228 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_ | 229 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_STORE_H_ |
| OLD | NEW |