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

Side by Side Diff: chrome_frame/chrome_frame_histograms.h

Issue 5270010: Revert 67662 - FBTF: Remove unneeded headers from base/ (part 10)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_tab.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_FRAME_CHROME_FRAME_HISTOGRAMS_H_ 5 #ifndef CHROME_FRAME_HISTOGRAM_SNAPSHOTS_H_
6 #define CHROME_FRAME_CHROME_FRAME_HISTOGRAMS_H_ 6 #define CHROME_FRAME_HISTOGRAM_SNAPSHOTS_H_
7 7
8 #include <map> 8 #include <map>
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/lock.h" 13 #include "base/lock.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/process.h" 15 #include "base/process.h"
16 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
17 #include "base/task.h"
17 18
18 // This class gathers histogram data in the host browser process and 19 // This class gathers histogram data in the host browser process and
19 // serializes the data into a vector of strings to be uploaded to the 20 // serializes the data into a vector of strings to be uploaded to the
20 // Chrome browser process. It records the histogram data which has been 21 // Chrome browser process. It records the histogram data which has been
21 // logged and only uploads the delta with the next log. 22 // logged and only uploads the delta with the next log.
22 // TODO(iyengar) 23 // TODO(iyengar)
23 // This class does not contain any ChromeFrame specific stuff. It should 24 // This class does not contain any ChromeFrame specific stuff. It should
24 // be moved to base. 25 // be moved to base.
25 class ChromeFrameHistogramSnapshots { 26 class ChromeFrameHistogramSnapshots {
26 public: 27 public:
(...skipping 20 matching lines...) Expand all
47 // For histograms, record what we've already logged (as a sample for each 48 // For histograms, record what we've already logged (as a sample for each
48 // histogram) so that we can send only the delta with the next log. 49 // histogram) so that we can send only the delta with the next log.
49 LoggedSampleMap logged_samples_; 50 LoggedSampleMap logged_samples_;
50 51
51 // Synchronizes the histogram gathering operation. 52 // Synchronizes the histogram gathering operation.
52 Lock lock_; 53 Lock lock_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(ChromeFrameHistogramSnapshots); 55 DISALLOW_COPY_AND_ASSIGN(ChromeFrameHistogramSnapshots);
55 }; 56 };
56 57
57 #endif // CHROME_FRAME_CHROME_FRAME_HISTOGRAMS_H_ 58 #endif // CHROME_RENDERER_HISTOGRAM_SNAPSHOTS_H_
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698