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 #include "net/disk_cache/rankings.h" | 5 #include "net/disk_cache/rankings.h" |
6 | 6 |
7 #include "base/histogram.h" | 7 #include "base/histogram.h" |
8 #include "net/disk_cache/backend_impl.h" | 8 #include "net/disk_cache/backend_impl.h" |
9 #include "net/disk_cache/entry_impl.h" | 9 #include "net/disk_cache/entry_impl.h" |
10 #include "net/disk_cache/errors.h" | 10 #include "net/disk_cache/errors.h" |
11 | 11 |
| 12 using base::Time; |
| 13 |
12 // This is used by crash_cache.exe to generate unit test files. | 14 // This is used by crash_cache.exe to generate unit test files. |
13 disk_cache::RankCrashes g_rankings_crash = disk_cache::NO_CRASH; | 15 disk_cache::RankCrashes g_rankings_crash = disk_cache::NO_CRASH; |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
17 const int kHeadIndex = 0; | 19 const int kHeadIndex = 0; |
18 const int kTailIndex = 1; | 20 const int kTailIndex = 1; |
19 const int kTransactionIndex = 2; | 21 const int kTransactionIndex = 2; |
20 const int kOperationIndex = 3; | 22 const int kOperationIndex = 3; |
21 | 23 |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 ++it) { | 671 ++it) { |
670 if (it->first == address) { | 672 if (it->first == address) { |
671 CacheRankingsBlock* other = it->second; | 673 CacheRankingsBlock* other = it->second; |
672 other->Data()->next = node->Data()->next; | 674 other->Data()->next = node->Data()->next; |
673 other->Data()->prev = node->Data()->prev; | 675 other->Data()->prev = node->Data()->prev; |
674 } | 676 } |
675 } | 677 } |
676 } | 678 } |
677 | 679 |
678 } // namespace disk_cache | 680 } // namespace disk_cache |
679 | |
OLD | NEW |