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

Unified Diff: base/metrics/bucket_ranges.h

Issue 10834011: Refactor of Histogram related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/bucket_ranges.h
===================================================================
--- base/metrics/bucket_ranges.h (revision 148055)
+++ base/metrics/bucket_ranges.h (working copy)
@@ -41,8 +41,8 @@
// Checksum methods to verify whether the ranges are corrupted (e.g. bad
// memory access).
- uint32 CalculateChecksum();
- bool HasValidChecksum();
+ uint32 CalculateChecksum() const;
+ bool HasValidChecksum() const;
void ResetChecksum();
// Return true iff |other| object has same ranges_ as |this| object's ranges_.
@@ -64,6 +64,10 @@
DISALLOW_COPY_AND_ASSIGN(BucketRanges);
};
+//////////////////////////////////////////////////////////////////////////////
+// Expose only for test.
+BASE_EXPORT_PRIVATE extern const uint32 kCrcTable[256];
+
} // namespace base
#endif // BASE_METRICS_BUCKET_RANGES_H_
« no previous file with comments | « base/base.gyp ('k') | base/metrics/bucket_ranges.cc » ('j') | base/metrics/histogram.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698