OLD | NEW |
1 // Copyright (c) 2011 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_STATS_H_ |
6 #define NET_DISK_CACHE_STATS_H_ | 6 #define NET_DISK_CACHE_STATS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "net/disk_cache/stats_histogram.h" | 13 #include "net/disk_cache/stats_histogram.h" |
15 | 14 |
16 namespace disk_cache { | 15 namespace disk_cache { |
17 | 16 |
18 class BackendImpl; | 17 class BackendImpl; |
19 | 18 |
20 typedef std::vector<std::pair<std::string, std::string> > StatsItems; | 19 typedef std::vector<std::pair<std::string, std::string> > StatsItems; |
21 | 20 |
22 // This class stores cache-specific usage information, for tunning purposes. | 21 // This class stores cache-specific usage information, for tunning purposes. |
23 class Stats { | 22 class Stats { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 int data_sizes_[kDataSizesLength]; | 86 int data_sizes_[kDataSizesLength]; |
88 int64 counters_[MAX_COUNTER]; | 87 int64 counters_[MAX_COUNTER]; |
89 StatsHistogram* size_histogram_; | 88 StatsHistogram* size_histogram_; |
90 | 89 |
91 DISALLOW_COPY_AND_ASSIGN(Stats); | 90 DISALLOW_COPY_AND_ASSIGN(Stats); |
92 }; | 91 }; |
93 | 92 |
94 } // namespace disk_cache | 93 } // namespace disk_cache |
95 | 94 |
96 #endif // NET_DISK_CACHE_STATS_H_ | 95 #endif // NET_DISK_CACHE_STATS_H_ |
OLD | NEW |