#include "remoting/host/pairing_registry_delegate_linux.h"
#include <memory>
#include <utility>
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/files/important_file_writer.h"
#include "base/functional/bind.h"
#include "base/json/json_file_value_serializer.h"
#include "base/json/json_string_value_serializer.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "base/values.h"
#include "remoting/host/branding.h"
namespace {
const char kRegistryDirectory[] = …;
const char kPairingFilenameFormat[] = …;
const char kPairingFilenamePattern[] = …;
}
namespace remoting {
PairingRegistry;
PairingRegistryDelegateLinux::PairingRegistryDelegateLinux() = default;
PairingRegistryDelegateLinux::~PairingRegistryDelegateLinux() = default;
base::Value::List PairingRegistryDelegateLinux::LoadAll() { … }
bool PairingRegistryDelegateLinux::DeleteAll() { … }
PairingRegistry::Pairing PairingRegistryDelegateLinux::Load(
const std::string& client_id) { … }
bool PairingRegistryDelegateLinux::Save(
const PairingRegistry::Pairing& pairing) { … }
bool PairingRegistryDelegateLinux::Delete(const std::string& client_id) { … }
base::FilePath PairingRegistryDelegateLinux::GetRegistryPath() { … }
void PairingRegistryDelegateLinux::SetRegistryPathForTesting(
const base::FilePath& registry_path) { … }
std::unique_ptr<PairingRegistry::Delegate> CreatePairingRegistryDelegate() { … }
}