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

Side by Side Diff: net/disk_cache/v3/backend_worker.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.h ('k') | net/disk_cache/v3/block_bitmaps.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/backend_impl.h" 5 #include "net/disk_cache/backend_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/hash.h" 11 #include "base/hash.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/metrics/stats_counters.h" 15 #include "base/metrics/stats_counters.h"
16 #include "base/rand_util.h" 16 #include "base/rand_util.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/sys_info.h" 19 #include "base/sys_info.h"
20 #include "base/threading/thread_restrictions.h" 20 #include "base/threading/thread_restrictions.h"
21 #include "base/time.h" 21 #include "base/time/time.h"
22 #include "base/timer.h" 22 #include "base/timer/timer.h"
23 #include "net/base/net_errors.h" 23 #include "net/base/net_errors.h"
24 #include "net/disk_cache/cache_util.h" 24 #include "net/disk_cache/cache_util.h"
25 #include "net/disk_cache/entry_impl.h" 25 #include "net/disk_cache/entry_impl.h"
26 #include "net/disk_cache/errors.h" 26 #include "net/disk_cache/errors.h"
27 #include "net/disk_cache/experiments.h" 27 #include "net/disk_cache/experiments.h"
28 #include "net/disk_cache/file.h" 28 #include "net/disk_cache/file.h"
29 29
30 // This has to be defined before including histogram_macros.h from this file. 30 // This has to be defined before including histogram_macros.h from this file.
31 #define NET_DISK_CACHE_BACKEND_IMPL_CC_ 31 #define NET_DISK_CACHE_BACKEND_IMPL_CC_
32 #include "net/disk_cache/histogram_macros.h" 32 #include "net/disk_cache/histogram_macros.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 return false; 476 return false;
477 477
478 if (!stats_.Init(data.get(), size, address)) 478 if (!stats_.Init(data.get(), size, address))
479 return false; 479 return false;
480 if (cache_type_ == net::DISK_CACHE && ShouldReportAgain()) 480 if (cache_type_ == net::DISK_CACHE && ShouldReportAgain())
481 stats_.InitSizeHistogram(); 481 stats_.InitSizeHistogram();
482 return true; 482 return true;
483 } 483 }
484 484
485 } // namespace disk_cache 485 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/v3/backend_worker.h ('k') | net/disk_cache/v3/block_bitmaps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698