OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ |
6 #define CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ | 6 #define CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/histogram.h" | 14 #include "base/histogram.h" |
15 #include "base/process.h" | 15 #include "base/process.h" |
16 #include "base/scoped_ptr.h" | |
17 #include "base/task.h" | 16 #include "base/task.h" |
18 | 17 |
19 class RendererHistogramSnapshots { | 18 class RendererHistogramSnapshots { |
20 public: | 19 public: |
21 RendererHistogramSnapshots(); | 20 RendererHistogramSnapshots(); |
22 ~RendererHistogramSnapshots(); | 21 ~RendererHistogramSnapshots(); |
23 | 22 |
24 // Send the histogram data. | 23 // Send the histogram data. |
25 void SendHistograms(int sequence_number); | 24 void SendHistograms(int sequence_number); |
26 | 25 |
(...skipping 15 matching lines...) Expand all Loading... |
42 renderer_histogram_snapshots_factory_; | 41 renderer_histogram_snapshots_factory_; |
43 | 42 |
44 // For histograms, record what we've already logged (as a sample for each | 43 // For histograms, record what we've already logged (as a sample for each |
45 // histogram) so that we can send only the delta with the next log. | 44 // histogram) so that we can send only the delta with the next log. |
46 LoggedSampleMap logged_samples_; | 45 LoggedSampleMap logged_samples_; |
47 | 46 |
48 DISALLOW_COPY_AND_ASSIGN(RendererHistogramSnapshots); | 47 DISALLOW_COPY_AND_ASSIGN(RendererHistogramSnapshots); |
49 }; | 48 }; |
50 | 49 |
51 #endif // CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ | 50 #endif // CHROME_RENDERER_RENDERER_HISTOGRAM_SNAPSHOTS_H_ |
OLD | NEW |