Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: net/disk_cache/blockfile/block_bitmaps_v3.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/blockfile/block_bitmaps_v3.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/blockfile/disk_format_base.h"
10 #include "net/disk_cache/trace.h" 10 #include "net/disk_cache/blockfile/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
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
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/block_bitmaps_v3.h ('k') | net/disk_cache/blockfile/block_bitmaps_v3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698