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

Unified Diff: base/metrics/histogram_sender.h

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: base/metrics/histogram_sender.h
===================================================================
--- base/metrics/histogram_sender.h (working copy)
+++ base/metrics/histogram_sender.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_METRICS_HISTOGRAM_SENDER_H_
-#define CHROME_COMMON_METRICS_HISTOGRAM_SENDER_H_
+#ifndef BASE_METRICS_HISTOGRAM_SENDER_H_
+#define BASE_METRICS_HISTOGRAM_SENDER_H_
#pragma once
#include <map>
@@ -13,6 +13,8 @@
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
+namespace base {
+
// HistogramSender handles the logistics of gathering up available histograms
jam 2012/06/01 18:23:23 it's a little odd that this class is called Histog
ramant (doing other things) 2012/06/07 02:04:41 Done.
// for transmission (such as from renderer to browser, or from browser to UMA
// upload). It has several pure virtual functions that are replaced in
@@ -22,7 +24,11 @@
// corruption, this class also validates as much rendundancy as it can before
// calling for the marginal change (a.k.a., delta) in a histogram to be sent
// onward.
-class HistogramSender {
+class BASE_EXPORT HistogramSender {
+ public:
+ // Send the histogram data from renderer or child processes.
+ virtual void SendHistograms(int sequence_number) = 0;
+
protected:
HistogramSender();
virtual ~HistogramSender();
@@ -64,4 +70,6 @@
DISALLOW_COPY_AND_ASSIGN(HistogramSender);
};
-#endif // CHROME_COMMON_METRICS_HISTOGRAM_SENDER_H_
+} // namespace base
+
+#endif // BASE_METRICS_HISTOGRAM_SENDER_H_

Powered by Google App Engine
This is Rietveld 408576698