#include "net/base/backoff_entry_serializer.h"
#include <algorithm>
#include <ostream>
#include <utility>
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/tick_clock.h"
#include "base/values.h"
#include "net/base/backoff_entry.h"
namespace {
const int kMaxFailureCount = …;
bool BackoffDurationSafeToSerialize(const base::TimeDelta& duration) { … }
}
namespace net {
base::Value::List BackoffEntrySerializer::SerializeToList(
const BackoffEntry& entry,
base::Time time_now) { … }
std::unique_ptr<BackoffEntry> BackoffEntrySerializer::DeserializeFromList(
const base::Value::List& serialized,
const BackoffEntry::Policy* policy,
const base::TickClock* tick_clock,
base::Time time_now) { … }
}