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 #include "chrome/browser/safe_browsing/safe_browsing_database_bloom.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_database_bloom.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/histogram.h" |
9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
10 #include "base/process_util.h" | 11 #include "base/process_util.h" |
11 #include "base/sha2.h" | 12 #include "base/sha2.h" |
12 #include "base/stats_counters.h" | 13 #include "base/stats_counters.h" |
13 #include "chrome/browser/safe_browsing/bloom_filter.h" | 14 #include "chrome/browser/safe_browsing/bloom_filter.h" |
14 #include "chrome/common/sqlite_compiled_statement.h" | 15 #include "chrome/common/sqlite_compiled_statement.h" |
15 #include "chrome/common/sqlite_utils.h" | 16 #include "chrome/common/sqlite_utils.h" |
16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
17 | 18 |
18 using base::Time; | 19 using base::Time; |
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 } | 1391 } |
1391 | 1392 |
1392 void SafeBrowsingDatabaseBloom::ClearUpdateCaches() { | 1393 void SafeBrowsingDatabaseBloom::ClearUpdateCaches() { |
1393 AutoLock lock(lookup_lock_); | 1394 AutoLock lock(lookup_lock_); |
1394 add_del_cache_.clear(); | 1395 add_del_cache_.clear(); |
1395 sub_del_cache_.clear(); | 1396 sub_del_cache_.clear(); |
1396 add_chunk_cache_.clear(); | 1397 add_chunk_cache_.clear(); |
1397 sub_chunk_cache_.clear(); | 1398 sub_chunk_cache_.clear(); |
1398 prefix_miss_cache_.clear(); | 1399 prefix_miss_cache_.clear(); |
1399 } | 1400 } |
OLD | NEW |