#include "components/sessions/core/session_id_generator.h"
#include <ostream>
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/rand_util.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
namespace sessions {
namespace {
const char kLastValuePref[] = …;
const int kCautionaryIdPadding = …;
SessionID::id_type DefaultRandGenerator() { … }
}
SessionIdGenerator* SessionIdGenerator::GetInstance() { … }
void SessionIdGenerator::RegisterPrefs(PrefRegistrySimple* prefs) { … }
void SessionIdGenerator::Init(PrefService* local_state) { … }
void SessionIdGenerator::Shutdown() { … }
SessionID SessionIdGenerator::NewUnique() { … }
void SessionIdGenerator::SetHighestRestoredID(SessionID highest_restored_id) { … }
std::string SessionIdGenerator::GetLastValuePrefNameForTest() { … }
void SessionIdGenerator::SetRandomGeneratorForTest(
const RandomGenerator& rand_generator) { … }
SessionIdGenerator::SessionIdGenerator()
: … { … }
SessionIdGenerator::~SessionIdGenerator() { … }
void SessionIdGenerator::IncrementValueBy(int increment) { … }
bool SessionIdGenerator::IsInitializedForTest() const { … }
}