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

Side by Side Diff: net/disk_cache/backend_impl.cc

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup pipelining compatibility client 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/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"
(...skipping 10 matching lines...) Expand all
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "base/timer/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/disk_format.h" 25 #include "net/disk_cache/disk_format.h"
26 #include "net/disk_cache/entry_impl.h" 26 #include "net/disk_cache/entry_impl.h"
27 #include "net/disk_cache/errors.h" 27 #include "net/disk_cache/errors.h"
28 #include "net/disk_cache/experiments.h" 28 #include "net/disk_cache/experiments.h"
29 #include "net/disk_cache/file.h" 29 #include "net/disk_cache/file.h"
30 30
31 // This has to be defined before including histogram_macros.h from this file. 31 #define CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ this
rvargas (doing something else) 2014/02/11 02:17:15 The comment is still needed.
gavinp 2014/02/11 16:12:45 Done. I've updated the comment to be both narrower
32 #define NET_DISK_CACHE_BACKEND_IMPL_CC_
33 #include "net/disk_cache/histogram_macros.h" 32 #include "net/disk_cache/histogram_macros.h"
34 33
35 using base::Time; 34 using base::Time;
36 using base::TimeDelta; 35 using base::TimeDelta;
37 using base::TimeTicks; 36 using base::TimeTicks;
38 37
39 namespace { 38 namespace {
40 39
41 const char* kIndexName = "index"; 40 const char* kIndexName = "index";
42 41
(...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 if (total_memory > kMaxBuffersSize || total_memory <= 0) 2090 if (total_memory > kMaxBuffersSize || total_memory <= 0)
2092 total_memory = kMaxBuffersSize; 2091 total_memory = kMaxBuffersSize;
2093 2092
2094 done = true; 2093 done = true;
2095 } 2094 }
2096 2095
2097 return static_cast<int>(total_memory); 2096 return static_cast<int>(total_memory);
2098 } 2097 }
2099 2098
2100 } // namespace disk_cache 2099 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698