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

Unified Diff: net/reporting/reporting_policy.h

Issue 2751883003: Reporting: Implement serializer. (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_persister_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 0cc31f9fdcef04192e64c2bee4f3047817249d8c..51bba69b403828cacb387f53252e86e906516172 100644
--- a/net/reporting/reporting_policy.h
+++ b/net/reporting/reporting_policy.h
@@ -18,18 +18,29 @@ struct NET_EXPORT ReportingPolicy {
ReportingPolicy(const ReportingPolicy& other);
~ReportingPolicy();
+ // Backoff policy for failing endpoints.
+ BackoffEntry::Policy endpoint_backoff_policy;
+
+ // Minimum interval at which Reporting will persist state to (relatively)
+ // stable storage to be restored if the embedder restarts.
+ base::TimeDelta persistence_interval;
+
+ // Whether to persist undelivered reports across embedder restarts.
+ bool persist_reports_across_restarts;
+
+ // Whether to persist clients (per-origin endpoint configurations) across
+ // embedder restarts.
+ bool persist_clients_across_restarts;
+
+ // Minimum interval at which to garbage-collect the cache.
+ base::TimeDelta garbage_collection_interval;
+
// 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_persister_unittest.cc ('k') | net/reporting/reporting_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698