| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_DATABASE_H__ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H__ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/task.h" | 13 #include "base/task.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "chrome/browser/safe_browsing/bloom_filter.h" | 15 #include "chrome/browser/safe_browsing/bloom_filter.h" |
| 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 16 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual void BuildBloomFilter() = 0; | 95 virtual void BuildBloomFilter() = 0; |
| 96 virtual void AddHostToBloomFilter(int host_key) = 0; | 96 virtual void AddHostToBloomFilter(int host_key) = 0; |
| 97 | 97 |
| 98 // Measuring false positive rate. Call this each time we look in the filter. | 98 // Measuring false positive rate. Call this each time we look in the filter. |
| 99 virtual void IncrementBloomFilterReadCount() = 0; | 99 virtual void IncrementBloomFilterReadCount() = 0; |
| 100 | 100 |
| 101 std::wstring bloom_filter_filename_; | 101 std::wstring bloom_filter_filename_; |
| 102 scoped_ptr<BloomFilter> bloom_filter_; | 102 scoped_ptr<BloomFilter> bloom_filter_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H__ | 105 #endif // CHROME_BROWSER_SAFE_BROWSING_SAFE_BROWSING_DATABASE_H_ |
| OLD | NEW |