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

Unified Diff: net/reporting/reporting_policy.h

Issue 2847813002: Reporting: Cap number of reports in cache. (Closed)
Patch Set: Tweak a couple of comments. Created 3 years, 8 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: net/reporting/reporting_policy.h
diff --git a/net/reporting/reporting_policy.h b/net/reporting/reporting_policy.h
index c400bfff452d4f2eb86e3b833d8cee7ea224fac7..98e1a4a5e4ec0481942559b6b668f3875f1aafc0 100644
--- a/net/reporting/reporting_policy.h
+++ b/net/reporting/reporting_policy.h
@@ -18,6 +18,9 @@ struct NET_EXPORT ReportingPolicy {
ReportingPolicy(const ReportingPolicy& other);
~ReportingPolicy();
+ // Maximum number of reports to queue before evicting the oldest.
+ size_t max_report_count;
+
// Minimum interval at which to attempt delivery of queued reports.
base::TimeDelta delivery_interval;

Powered by Google App Engine
This is Rietveld 408576698