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

Side by Side Diff: net/reporting/reporting_policy.h

Issue 2751103002: Reporting: Wrap existing classes in context. (Closed)
Patch Set: Move before BrowsingDataRemover, GarbageCollector, and Serializer CLs. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_REPORTING_REPORTING_POLICY_H_
6 #define NET_REPORTING_REPORTING_POLICY_H_
7
8 #include "base/time/time.h"
9 #include "net/base/backoff_entry.h"
10 #include "net/base/net_export.h"
11
12 namespace net {
13
14 // Various policy knobs for the Reporting system.
15 struct NET_EXPORT ReportingPolicy {
16 // Provides a reasonable default for use in a browser embedder.
17 ReportingPolicy();
18 ReportingPolicy(const ReportingPolicy& other);
19 ~ReportingPolicy();
20
21 // Maximum number of reports that can be queued before evicting the
22 // oldest-quieued.
shivanisha 2017/04/03 15:39:05 nit: spelling of queued
Julia Tuttle 2017/04/04 18:28:02 Obsolete.
23 int max_report_count;
24
25 // Maximum number of endpoints that can be configured before evicting the
26 // oldest-used.
27 int max_endpoint_count;
shivanisha 2017/04/03 15:39:05 Which classes implement the max_report_count , max
Julia Tuttle 2017/04/04 18:28:02 They will be implemented in the cache, but I'm act
shivanisha 2017/04/05 16:52:57 Sounds good.
28
29 // Maximum age a report can be queued for before being discarded as expired.
30 base::TimeDelta max_report_age;
31
32 // Maximum number of delivery attempts a report can have before being
33 // discarded as failed.
34 int max_report_attempts;
35
36 // Backoff policy for failing endpoints.
37 BackoffEntry::Policy endpoint_backoff_policy;
38
39 // Whether to clear reports on network changes.
40 bool clear_reports_on_network_changes;
41
42 // Whether to persist reports across browser/embedder restarts.
43 bool persist_reports_across_restarts;
44
45 // Whether to persist clients across browser/embedder restarts.
46 bool persist_clients_across_restarts;
47
48 // Minimum interval at which to attempt to deliver undelivered reports.
49 base::TimeDelta deliver_interval;
50
51 // Minimum interval at which to persist reports and/or clients for use on a
52 // future restart.
53 base::TimeDelta persist_interval;
54 };
55
56 } // namespace net
57
58 #endif // NET_REPORTING_REPORTING_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698