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

Unified Diff: base/metrics/histogram_base.h

Issue 11231025: Histogram argument related change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_base.h
diff --git a/base/metrics/histogram_base.h b/base/metrics/histogram_base.h
index 211606a9898b7bad263643bb092878fe8eb4c93e..8c78a79e5ab33835b47ea03440704383e12a1ff9 100644
--- a/base/metrics/histogram_base.h
+++ b/base/metrics/histogram_base.h
@@ -51,8 +51,14 @@ class BASE_EXPORT HistogramBase {
void SetFlags(int32 flags);
void ClearFlags(int32 flags);
+ virtual bool HasConstructionArguments(Sample minimum,
Ilya Sherman 2012/10/24 00:30:08 nit: Please add a comment describing this method.
kaiwang 2012/10/24 03:43:28 Done.
+ Sample maximum,
+ size_t bucket_count) const = 0;
+
virtual void Add(Sample value) = 0;
+ // Snapshot the current complete set of sample data.
+ // Override with atomic/locked snapshot if needed.
virtual scoped_ptr<HistogramSamples> SnapshotSamples() const = 0;
// The following methods provide graphical histogram displays.

Powered by Google App Engine
This is Rietveld 408576698