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

Side by Side Diff: net/disk_cache/v3/block_bitmaps.cc

Issue 18054009: Use a direct include of time headers in net/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « net/disk_cache/v3/backend_worker.cc ('k') | net/disk_cache/v3/eviction_v3.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/block_files.h" 5 #include "net/disk_cache/block_files.h"
6 6
7 #include "base/atomicops.h" 7 #include "base/atomicops.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
13 #include "base/time.h" 13 #include "base/time/time.h"
14 #include "net/disk_cache/cache_util.h" 14 #include "net/disk_cache/cache_util.h"
15 #include "net/disk_cache/file_lock.h" 15 #include "net/disk_cache/file_lock.h"
16 #include "net/disk_cache/trace.h" 16 #include "net/disk_cache/trace.h"
17 17
18 using base::TimeTicks; 18 using base::TimeTicks;
19 19
20 namespace disk_cache { 20 namespace disk_cache {
21 21
22 BlockFiles::BlockFiles(const base::FilePath& path) 22 BlockFiles::BlockFiles(const base::FilePath& path)
23 : init_(false), zero_buffer_(NULL), path_(path) { 23 : init_(false), zero_buffer_(NULL), path_(path) {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 if (!header->next_file) 324 if (!header->next_file)
325 break; 325 break;
326 index = header->next_file; 326 index = header->next_file;
327 } 327 }
328 if (max_blocks) 328 if (max_blocks)
329 *load = *used_count * 100 / max_blocks; 329 *load = *used_count * 100 / max_blocks;
330 } 330 }
331 331
332 } // namespace disk_cache 332 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/v3/backend_worker.cc ('k') | net/disk_cache/v3/eviction_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698