| Index: net/reporting/reporting_policy.cc
|
| diff --git a/net/reporting/reporting_policy.cc b/net/reporting/reporting_policy.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6d36f845292fe5920e22894a5441f78c10b75185
|
| --- /dev/null
|
| +++ b/net/reporting/reporting_policy.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/reporting/reporting_policy.h"
|
| +
|
| +namespace net {
|
| +
|
| +ReportingPolicy::ReportingPolicy() {
|
| + endpoint_backoff_policy.num_errors_to_ignore = 0;
|
| + endpoint_backoff_policy.initial_delay_ms = 60 * 1000; // 1 minute
|
| + endpoint_backoff_policy.multiply_factor = 2.0;
|
| + endpoint_backoff_policy.jitter_factor = 0.1;
|
| + endpoint_backoff_policy.maximum_backoff_ms = -1; // 1 hour
|
| + endpoint_backoff_policy.entry_lifetime_ms = -1; // infinite
|
| + endpoint_backoff_policy.always_use_initial_delay = false;
|
| +}
|
| +
|
| +ReportingPolicy::ReportingPolicy(const ReportingPolicy& other)
|
| + : endpoint_backoff_policy(other.endpoint_backoff_policy) {}
|
| +
|
| +ReportingPolicy::~ReportingPolicy() {}
|
| +
|
| +} // namespace net
|
|
|