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

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

Issue 2813103005: Reporting: Observe network changes and clear reports/clients (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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_REPORTING_REPORTING_POLICY_H_ 5 #ifndef NET_REPORTING_REPORTING_POLICY_H_
6 #define NET_REPORTING_REPORTING_POLICY_H_ 6 #define NET_REPORTING_REPORTING_POLICY_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "net/base/backoff_entry.h" 9 #include "net/base/backoff_entry.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Minimum interval at which to garbage-collect the cache. 35 // Minimum interval at which to garbage-collect the cache.
36 base::TimeDelta garbage_collection_interval; 36 base::TimeDelta garbage_collection_interval;
37 37
38 // Maximum age a report can be queued for before being discarded as expired. 38 // Maximum age a report can be queued for before being discarded as expired.
39 base::TimeDelta max_report_age; 39 base::TimeDelta max_report_age;
40 40
41 // Maximum number of delivery attempts a report can have before being 41 // Maximum number of delivery attempts a report can have before being
42 // discarded as failed. 42 // discarded as failed.
43 int max_report_attempts; 43 int max_report_attempts;
44
45 // Whether to clear reports when the network changes to avoid leaking browsing
46 // data between networks.
47 bool clear_reports_on_network_changes;
48
49 // Whether to clear clients when the network changes to avoid leaking browsing
50 // data between networks.
51 bool clear_clients_on_network_changes;
44 }; 52 };
45 53
46 } // namespace net 54 } // namespace net
47 55
48 #endif // NET_REPORTING_REPORTING_POLICY_H_ 56 #endif // NET_REPORTING_REPORTING_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698