chromium/components/sessions/core/session_id_generator.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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[] =;
// On startup, we increment the internal counter by |kCautionaryIdPadding| to
// mitigate issues during ungraceful shutdown, where prefs might not have
// managed to persist the latest generated session IDs, but other databases
// (e.g. sync) might have stored those IDs.
const int kCautionaryIdPadding =;

SessionID::id_type DefaultRandGenerator() {}

}  // namespace

// static
SessionIdGenerator* SessionIdGenerator::GetInstance() {}

// static
void SessionIdGenerator::RegisterPrefs(PrefRegistrySimple* prefs) {}

void SessionIdGenerator::Init(PrefService* local_state) {}

void SessionIdGenerator::Shutdown() {}

SessionID SessionIdGenerator::NewUnique() {}

void SessionIdGenerator::SetHighestRestoredID(SessionID highest_restored_id) {}

// static
std::string SessionIdGenerator::GetLastValuePrefNameForTest() {}

void SessionIdGenerator::SetRandomGeneratorForTest(
    const RandomGenerator& rand_generator) {}

SessionIdGenerator::SessionIdGenerator()
    :{}

SessionIdGenerator::~SessionIdGenerator() {}

void SessionIdGenerator::IncrementValueBy(int increment) {}

bool SessionIdGenerator::IsInitializedForTest() const {}

}  // namespace sessions