| OLD | NEW |
| 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 #include "net/disk_cache/v3/block_bitmaps.h" | 5 #include "net/disk_cache/v3/block_bitmaps.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "net/disk_cache/disk_format_base.h" | 9 #include "net/disk_cache/v2/disk_format_base.h" |
| 10 #include "net/disk_cache/trace.h" | 10 #include "net/disk_cache/v2/trace.h" |
| 11 | 11 |
| 12 using base::TimeTicks; | 12 using base::TimeTicks; |
| 13 | 13 |
| 14 namespace disk_cache { | 14 namespace disk_cache { |
| 15 | 15 |
| 16 BlockBitmaps::BlockBitmaps() { | 16 BlockBitmaps::BlockBitmaps() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 BlockBitmaps::~BlockBitmaps() { | 19 BlockBitmaps::~BlockBitmaps() { |
| 20 } | 20 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 *used_count += used; | 169 *used_count += used; |
| 170 | 170 |
| 171 index = bitmaps_[index].NextFileId(); | 171 index = bitmaps_[index].NextFileId(); |
| 172 } while (index); | 172 } while (index); |
| 173 | 173 |
| 174 if (max_blocks) | 174 if (max_blocks) |
| 175 *load = *used_count * 100 / max_blocks; | 175 *load = *used_count * 100 / max_blocks; |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace disk_cache | 178 } // namespace disk_cache |
| OLD | NEW |