OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Minimum interval at which to garbage-collect the cache. | 38 // Minimum interval at which to garbage-collect the cache. |
39 base::TimeDelta garbage_collection_interval; | 39 base::TimeDelta garbage_collection_interval; |
40 | 40 |
41 // Maximum age a report can be queued for before being discarded as expired. | 41 // Maximum age a report can be queued for before being discarded as expired. |
42 base::TimeDelta max_report_age; | 42 base::TimeDelta max_report_age; |
43 | 43 |
44 // Maximum number of delivery attempts a report can have before being | 44 // Maximum number of delivery attempts a report can have before being |
45 // discarded as failed. | 45 // discarded as failed. |
46 int max_report_attempts; | 46 int max_report_attempts; |
| 47 |
| 48 // Whether to clear reports when the network changes to avoid leaking browsing |
| 49 // data between networks. |
| 50 bool clear_reports_on_network_changes; |
| 51 |
| 52 // Whether to clear clients when the network changes to avoid leaking browsing |
| 53 // data between networks. |
| 54 bool clear_clients_on_network_changes; |
47 }; | 55 }; |
48 | 56 |
49 } // namespace net | 57 } // namespace net |
50 | 58 |
51 #endif // NET_REPORTING_REPORTING_POLICY_H_ | 59 #endif // NET_REPORTING_REPORTING_POLICY_H_ |
OLD | NEW |