OLD | NEW |
(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 #include "net/reporting/reporting_policy.h" |
| 6 |
| 7 namespace net { |
| 8 |
| 9 ReportingPolicy::ReportingPolicy() { |
| 10 endpoint_backoff_policy.num_errors_to_ignore = 0; |
| 11 endpoint_backoff_policy.initial_delay_ms = 60 * 1000; // 1 minute |
| 12 endpoint_backoff_policy.multiply_factor = 2.0; |
| 13 endpoint_backoff_policy.jitter_factor = 0.1; |
| 14 endpoint_backoff_policy.maximum_backoff_ms = -1; // 1 hour |
| 15 endpoint_backoff_policy.entry_lifetime_ms = -1; // infinite |
| 16 endpoint_backoff_policy.always_use_initial_delay = false; |
| 17 } |
| 18 |
| 19 ReportingPolicy::ReportingPolicy(const ReportingPolicy& other) |
| 20 : endpoint_backoff_policy(other.endpoint_backoff_policy) {} |
| 21 |
| 22 ReportingPolicy::~ReportingPolicy() {} |
| 23 |
| 24 } // namespace net |
OLD | NEW |