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

Unified Diff: net/reporting/reporting_policy.h

Issue 2740833004: Reporting: Implement garbage collector. (Closed)
Patch Set: rebase 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
« no previous file with comments | « net/reporting/reporting_garbage_collector_unittest.cc ('k') | net/reporting/reporting_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_policy.h
diff --git a/net/reporting/reporting_policy.h b/net/reporting/reporting_policy.h
index 5f472d7fe5edbaf971d1f243cafea2a8e2be143f..0cc31f9fdcef04192e64c2bee4f3047817249d8c 100644
--- a/net/reporting/reporting_policy.h
+++ b/net/reporting/reporting_policy.h
@@ -18,8 +18,18 @@ struct NET_EXPORT ReportingPolicy {
ReportingPolicy(const ReportingPolicy& other);
~ReportingPolicy();
+ // Maximum age a report can be queued for before being discarded as expired.
+ base::TimeDelta max_report_age;
+
+ // Maximum number of delivery attempts a report can have before being
+ // discarded as failed.
+ int max_report_attempts;
+
// Backoff policy for failing endpoints.
BackoffEntry::Policy endpoint_backoff_policy;
+
+ // Minimum interval at which to garbage-collect the cache.
+ base::TimeDelta garbage_collection_interval;
};
} // namespace net
« no previous file with comments | « net/reporting/reporting_garbage_collector_unittest.cc ('k') | net/reporting/reporting_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698