OLD | NEW |
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 #ifndef NET_DISK_CACHE_STATS_H_ | 5 #ifndef NET_DISK_CACHE_BLOCKFILE_STATS_H_ |
6 #define NET_DISK_CACHE_STATS_H_ | 6 #define NET_DISK_CACHE_BLOCKFILE_STATS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "net/disk_cache/addr.h" | 12 #include "net/disk_cache/blockfile/addr.h" |
13 #include "net/disk_cache/stats_histogram.h" | 13 #include "net/disk_cache/blockfile/stats_histogram.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class HistogramSamples; | 16 class HistogramSamples; |
17 } // namespace base | 17 } // namespace base |
18 | 18 |
19 namespace disk_cache { | 19 namespace disk_cache { |
20 | 20 |
21 typedef std::vector<std::pair<std::string, std::string> > StatsItems; | 21 typedef std::vector<std::pair<std::string, std::string> > StatsItems; |
22 | 22 |
23 // This class stores cache-specific usage information, for tunning purposes. | 23 // This class stores cache-specific usage information, for tunning purposes. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 Addr storage_addr_; | 95 Addr storage_addr_; |
96 int data_sizes_[kDataSizesLength]; | 96 int data_sizes_[kDataSizesLength]; |
97 int64 counters_[MAX_COUNTER]; | 97 int64 counters_[MAX_COUNTER]; |
98 StatsHistogram* size_histogram_; | 98 StatsHistogram* size_histogram_; |
99 | 99 |
100 DISALLOW_COPY_AND_ASSIGN(Stats); | 100 DISALLOW_COPY_AND_ASSIGN(Stats); |
101 }; | 101 }; |
102 | 102 |
103 } // namespace disk_cache | 103 } // namespace disk_cache |
104 | 104 |
105 #endif // NET_DISK_CACHE_STATS_H_ | 105 #endif // NET_DISK_CACHE_BLOCKFILE_STATS_H_ |
OLD | NEW |