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

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

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix fat finger 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
« no previous file with comments | « net/disk_cache/rankings.cc ('k') | net/disk_cache/v3/backend_worker.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/v3/backend_impl_v3.h" 5 #include "net/disk_cache/v3/backend_impl_v3.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/errors.h" 25 #include "net/disk_cache/errors.h"
26 #include "net/disk_cache/experiments.h" 26 #include "net/disk_cache/experiments.h"
27 #include "net/disk_cache/file.h" 27 #include "net/disk_cache/file.h"
28 #include "net/disk_cache/storage_block-inl.h" 28 #include "net/disk_cache/storage_block-inl.h"
29 #include "net/disk_cache/v3/disk_format_v3.h" 29 #include "net/disk_cache/v3/disk_format_v3.h"
30 #include "net/disk_cache/v3/entry_impl_v3.h" 30 #include "net/disk_cache/v3/entry_impl_v3.h"
31 #include "net/disk_cache/v3/histogram_macros.h"
31 #include "net/disk_cache/v3/index_table.h" 32 #include "net/disk_cache/v3/index_table.h"
32 33
33 // This has to be defined before including histogram_macros.h from this file. 34 // Provide a BackendImpl object to macros from histogram_macros.h.
34 #define NET_DISK_CACHE_BACKEND_IMPL_CC_ 35 #define CACHE_UMA_BACKEND_IMPL_OBJ this
35 #include "net/disk_cache/v3/histogram_macros.h"
36 36
37 using base::Time; 37 using base::Time;
38 using base::TimeDelta; 38 using base::TimeDelta;
39 using base::TimeTicks; 39 using base::TimeTicks;
40 40
41 namespace { 41 namespace {
42 42
43 #if defined(V3_NOT_JUST_YET_READY) 43 #if defined(V3_NOT_JUST_YET_READY)
44 const int kDefaultCacheSize = 80 * 1024 * 1024; 44 const int kDefaultCacheSize = 80 * 1024 * 1024;
45 45
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 } 1598 }
1599 1599
1600 void BackendImplV3::OnExternalCacheHit(const std::string& key) { 1600 void BackendImplV3::OnExternalCacheHit(const std::string& key) {
1601 NOTIMPLEMENTED(); 1601 NOTIMPLEMENTED();
1602 } 1602 }
1603 1603
1604 void BackendImplV3::CleanupCache() { 1604 void BackendImplV3::CleanupCache() {
1605 } 1605 }
1606 1606
1607 } // namespace disk_cache 1607 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/rankings.cc ('k') | net/disk_cache/v3/backend_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698